X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Ffix-unix.sh;fp=tools%2Ffix-unix.sh;h=4a1a732f9d67284ca5e6806529423e35ea735549;hb=86bd0f2592c3cd674239532247276bd2d579a857;hp=0000000000000000000000000000000000000000;hpb=6669798cb8d60a5ffc0e1b60782d51e3368f9d58;p=virtualjaguar diff --git a/tools/fix-unix.sh b/tools/fix-unix.sh new file mode 100755 index 0000000..4a1a732 --- /dev/null +++ b/tools/fix-unix.sh @@ -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!"