CVS: sml-dist/src/cm/main cm-boot.sml,1.88,1.89

Matthias Blume <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj.commits
Message-ID <[email protected]>
Update of /cvsroot/smlnj/sml-dist/src/cm/main
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv28932/src/cm/main

Modified Files:
	cm-boot.sml 
Log Message:
better fix for ml-makedepend

Index: cm-boot.sml
===================================================================
RCS file: /cvsroot/smlnj/sml-dist/src/cm/main/cm-boot.sml,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** cm-boot.sml	12 May 2006 20:16:43 -0000	1.88
--- cm-boot.sml	15 May 2006 20:15:32 -0000	1.89
***************
*** 332,390 ****
  	  end
  
! 	  fun sources archos group = let
! 	      val policy =
! 		  case archos of
! 		      NONE => fnpolicy
! 		    | SOME ao => FilenamePolicy.colocate_generic ao
! 	      fun sourcesOf ((p, gth, _), (v, a, r)) =
! 		  let val v' = SrcPathSet.add (v, p)
! 		  in case gth () of
! 			 GG.ERRORGROUP => (v', a, r)
! 		       | GG.GROUP { kind, sources, ... } =>
! 			 let fun add (p, x, a) =
! 				 StringMap.insert (a, SrcPath.osstring p, x)
! 			     fun sg l =
! 				 if SrcPathSet.member (v, p) then (v, a, r)
! 				 else foldl sourcesOf
! 					    (v', SrcPathMap.foldli
! 						     add a sources, r)
! 					    l
! 			 in case kind of
! 				GG.LIB { kind, version } =>
! 				(case kind of
! 				     GG.STABLE _ =>
! 				     let val f = SrcPath.osstring p
! 					 val r' = StringSet.add (r, f)
! 					 val x = valOf (StringMap.find (a, f))
! 					 val sf = FilenamePolicy.mkStableName
! 						      policy (p, version)
! 				     in (v', StringMap.insert (a, sf, x), r')
! 				     end
! 				   | GG.DEVELOPED d => sg (#subgroups d))
! 			      | GG.NOLIB n => sg (#subgroups n)
! 			 end
! 		  end
! 	      val p = mkStdSrcPath group
! 	      val gr = GroupReg.new ()
! 	  in
! 	      (case Parse.parse (parse_arg (gr, NONE, p)) of
! 		   SOME (g, _) => let
! 		       val (_, sm, removed) =
! 			   sourcesOf ((p, fn () => g, []),
! 				      (SrcPathSet.empty,
! 				       StringMap.singleton
! 					   (SrcPath.osstring p,
! 					    { class = "cm",
! 					      derived = false }),
! 				       StringSet.empty))
! 		       fun trim (f, sm) = #1 (StringMap.remove (sm, f))
! 		       val sm = StringSet.foldl trim sm removed
! 		       fun add (s, { class, derived }, l) =
! 			   { file = s, class = class, derived = derived } :: l
! 		   in SOME (StringMap.foldli add [] sm)
! 		   end
! 		 | _ => NONE)
! 	      before dropPickles ()
! 	  end
  
  	  fun mk_standalone sflag { setup, project, wrapper, target } = let
--- 332,396 ----
  	  end
  
! 	  fun sources archos group =
! 	      let val policy =
! 		      case archos of
! 			  NONE => fnpolicy
! 			| SOME ao => FilenamePolicy.colocate_generic ao
! 		  fun snam (p, version) = FilenamePolicy.mkStableName
! 					      policy (p, version)
! 		  fun insert0 (a, f, x) = StringMap.insert (a, f, x)
! 		  fun insert (a, p, x) = insert0 (a, SrcPath.osstring p, x)
! 		  fun add (s, p) = SrcPathSet.add (s, p)
! 
! 		  fun addSources (subgroups, sources, a, v) =
! 		      let fun findSG p =
! 			      List.find (fn (p', _, _) =>
! 					    SrcPath.compare (p, p') = EQUAL)
! 					subgroups
! 			  fun one (p, x as { class, derived }, (a, v)) =
! 			      if SrcPathSet.member (v, p) then (a, v)
! 			      else if class = "cm" then
! 				  case findSG p of
! 				      NONE => (a, v) (* unused group/library *)
! 				    | SOME (_, gth, _) =>
! 				        addGroup (p, x, gth, a, add (v, p))
! 			      else (insert (a, p, x), add (v, p))
! 		      in SrcPathMap.foldli one (a, v) sources
! 		      end
! 
! 		  and addGroup (p, x, gth, a, v) =
! 		      case gth () of
! 			  GG.ERRORGROUP => (a, v)
! 			| GG.GROUP { kind, sources, ... } =>
! 			    (case kind of
! 				 GG.LIB { kind, version } =>
! 				   (case kind of
! 					GG.STABLE _ =>
! 					  (insert0 (a, snam (p, version), x), v)
! 				      | GG.DEVELOPED d =>
!  					  addSources (#subgroups d, sources,
! 						      insert (a, p, x), v))
! 			       | GG.NOLIB n =>
! 				   addSources (#subgroups n, sources,
! 					       insert (a, p, x), v))
! 		      
! 		  val p = mkStdSrcPath group
! 		  val gr = GroupReg.new ()
! 		  val x0 = { class = "cm", derived = false }
! 		  fun doit () =
! 		      case Parse.parse (parse_arg (gr, NONE, p)) of
! 			  SOME (g, _) =>
! 			    let val (sm, _) =
! 				    addGroup (p, x0, fn () => g,
! 					      StringMap.empty,
! 					      SrcPathSet.singleton p)
! 				fun add (f, { class, derived }, l) =
! 				    { file = f, class = class,
! 				      derived = derived } :: l
! 			    in SOME (StringMap.foldli add [] sm)
! 			    end
! 			| NONE => NONE
! 	      in doit () before dropPickles ()
! 	      end
  
  	  fun mk_standalone sflag { setup, project, wrapper, target } = let



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.