]> Shamusworld >> Repos - virtualjaguar/commitdiff
This commit was manufactured by cvs2svn to create branch 'avendor'.
author(no author) <(no author)>
Tue, 8 Jul 2003 19:09:09 +0000 (19:09 +0000)
committer(no author) <(no author)>
Tue, 8 Jul 2003 19:09:09 +0000 (19:09 +0000)
fix-unix.sh [new file with mode: 0644]

diff --git a/fix-unix.sh b/fix-unix.sh
new file mode 100644 (file)
index 0000000..4a1a732
--- /dev/null
@@ -0,0 +1,21 @@
+#! /bin/sh
+#
+#  Sets up the Allegro package for building under Unix, converting text
+#  files from CR/LF to LF format.
+
+
+echo "Converting NeoPocott files to Unix format..."
+
+find . -type f "(" \
+   -name "*.c*" -o -name "*.cfg" -o \
+   -name "*.h" -o -name "*.s" -o \
+   -name "*.txt" -o -name "*.asm" -o \
+   -name "Makefile*" -o -name "readme.*" \
+   ")" \
+   -exec sh -c "echo {};
+               mv {} _tmpfile;
+               tr -d \\\r < _tmpfile > {};
+               touch -r _tmpfile {}; 
+               rm _tmpfile" \;
+
+echo "Done!"