[AD] Patch for utod in .bat files

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hello,
Here's a patch that fixes a small problem in fix*.bat. The problem was
that dos gets confused if a bat file is modified by utod while it is
running. The patch should be applied in Allegro's directory with -p1.
Merry Christmas,
Sven
diff -u3 -r diffs.original/fixdjgpp.bat diffs/fixdjgpp.bat
--- diffs.original/fixdjgpp.bat	Tue Dec 26 19:53:18 2000
+++ diffs/fixdjgpp.bat	Tue Dec 26 19:53:50 2000
@@ -1,3 +1,4 @@
+@utod *.bat
 @echo off
 rem
 rem  Sets up the Allegro package for building with djgpp, generating the
@@ -10,7 +11,7 @@
 echo MAKEFILE_INC = makefile.dj >> makefile
 echo include makefile.all >> makefile
 
-utod *.bat .../*.c *.cfg .../*.h .../*.inc
+utod .../*.c *.cfg .../*.h .../*.inc
 utod .../*.s .../*.txt .../*._tx makefile.* readme.*
 
 echo Done!
diff -u3 -r diffs.original/fixmsvc.bat diffs/fixmsvc.bat
--- diffs.original/fixmsvc.bat	Tue Dec 26 19:53:18 2000
+++ diffs/fixmsvc.bat	Tue Dec 26 19:53:50 2000
@@ -1,3 +1,4 @@
+@utod *.bat
 @echo off
 rem
 rem  Sets up the Allegro package for building with MSVC, generating the
@@ -10,7 +11,7 @@
 echo MAKEFILE_INC = makefile.vc >> makefile
 echo include makefile.all >> makefile
 
-utod *.bat .../*.c *.cfg .../*.h .../*.inc .../*.rc
+utod .../*.c *.cfg .../*.h .../*.inc .../*.rc
 utod .../*.s .../*.txt .../*._tx makefile.* readme.*
 
 echo Done!
diff -u3 -r diffs.original/fixwat.bat diffs/fixwat.bat
--- diffs.original/fixwat.bat	Tue Dec 26 19:53:18 2000
+++ diffs/fixwat.bat	Tue Dec 26 19:53:50 2000
@@ -1,3 +1,4 @@
+@utod *.bat
 @echo off
 rem
 rem  Sets up the Allegro package for building with Watcom, generating the
@@ -10,7 +11,7 @@
 echo MAKEFILE_INC = makefile.wat >> makefile
 echo include makefile.all >> makefile
 
-utod *.bat .../*.c *.cfg .../*.h .../*.inc
+utod .../*.c *.cfg .../*.h .../*.inc
 utod .../*.s .../*.txt .../*._tx makefile.* readme.*
 
 echo Done!



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/