[AD] DOS vs Unix text format mess |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I just realized that the tests/win directory in the DOS distribution is a
mess wrt the text encoding format:
- dibsound.rc and dxwindow.rc are ok (\r\n),
- dibsound.rh and dxwindow.rh are not ok (\n),
- scrsave.rc is not ok (\r\r\n).
There are two problems:
- scrsave.rc is not stored as a text file in the CVS repository,
- the fix scripts don't handle *.rh files.
Fixed by re-commiting scrsave.rc after DOS->Unix conversion under Linux and
the attached patch, both on mainline and branch.
--
Eric Botcazou
Index: fix.bat
===================================================================
RCS file: /cvsroot/alleg/allegro/fix.bat,v
retrieving revision 1.11
diff -u -r1.11 fix.bat
--- fix.bat 19 Feb 2002 23:31:29 -0000 1.11
+++ fix.bat 21 Sep 2003 12:41:38 -0000
@@ -86,7 +86,7 @@
echo Converting Allegro files to DOS CR/LF format...
utod .../*.bat .../*.sh .../*.c *.cfg .../*.h .../*.inc .../*.rc
-utod .../*.inl .../*.s .../*.txt .../*._tx makefile.*
+utod .../*.rh .../*.inl .../*.s .../*.txt .../*._tx makefile.*
:done
echo Done!
Index: fix.sh
===================================================================
RCS file: /cvsroot/alleg/allegro/fix.sh,v
retrieving revision 1.22
diff -u -r1.22 fix.sh
--- fix.sh 28 Jun 2003 08:51:14 -0000 1.22
+++ fix.sh 21 Sep 2003 12:41:38 -0000
@@ -40,10 +40,10 @@
-name "*.c" -o -name "*.cfg" -o -name "*.cpp" -o -name "*.def" -o \
-name "*.h" -o -name "*.hin" -o -name "*.in" -o -name "*.inc" -o \
-name "*.m" -o -name "*.m4" -o -name "*.mft" -o -name "*.s" -o \
- -name "*.rc" -o -name "*.spec" -o -name "*.pl" -o -name "*.txt" -o \
- -name "*._tx" -o -name "makefile*" -o -name "*.inl" -o \
- -name "configure" -o -name "CHANGES" -o -name "AUTHORS" -o \
- -name "THANKS" \
+ -name "*.rc" -o -name "*.rh" -o -name "*.spec" -o -name "*.pl" -o \
+ -name "*.txt" -o -name "*._tx" -o -name "makefile*" -o \
+ -name "*.inl" -o -name "configure" -o -name "CHANGES" -o \
+ -name "AUTHORS" -o -name "THANKS" \
")"`
# touch unix shell scripts?