Ticket #22254: patch-tools-coq_makefile.ml4.diff
File patch-tools-coq_makefile.ml4.diff, 1.5 KB (added by kiyoshi.coquser@…, 15 years ago) |
---|
-
tools/coq_makefile.ml4
old new 163 163 let ldir = List.assoc "." (List.map (fun (p,l,_) -> (p,l)) inc_r) in 164 164 let pdir = physical_dir_of_logical_dir ldir in 165 165 printf "\t(for i in $(%s); do \\\n" var; 166 printf "\t install - D $$i $(COQLIB)/user-contrib/%s/$$i; \\\n"pdir;166 printf "\t install -d `dirname $(COQLIB)/user-contrib/%s/$$i`; \\\n\t install $$i $(COQLIB)/user-contrib/%s/$$i; \\\n" pdir pdir; 167 167 printf "\t done)\n" 168 168 with Not_found -> 169 169 (* Files in the scope of a -R option (assuming they are disjoint) *) … … 172 172 begin 173 173 let pdir' = physical_dir_of_logical_dir ldir in 174 174 printf "\t(cd %s; for i in $(%s%d); do \\\n" pdir var i; 175 printf "\t install - D $$i $(COQLIB)/user-contrib/%s/$$i; \\\n"pdir';175 printf "\t install -d `dirname $(COQLIB)/user-contrib/%s/$$i`; \\\n\t install $$i $(COQLIB)/user-contrib/%s/$$i; \\\n" pdir' pdir'; 176 176 printf "\t done)\n" 177 177 end) inc_r; 178 178 (* Files not in the scope of a -R option *) 179 179 printf "\t(for i in $(%s0); do \\\n" var; 180 printf "\t install - D$$i $(COQLIB)/user-contrib/$(INSTALLDEFAULTROOT)/$$i; \\\n";180 printf "\t install -d `dirname $(COQLIB)/user-contrib/$(INSTALLDEFAULTROOT)/$$i`; \\\n\t install $$i $(COQLIB)/user-contrib/$(INSTALLDEFAULTROOT)/$$i; \\\n"; 181 181 printf "\t done)\n" 182 182 183 183 let install (vfiles,mlfiles,_,sds) inc =