]> Shamusworld >> Repos - virtualjaguar/blob - tools/fix-unix.sh
Adding 1.0.1/2 uncompressed tarballs to tags for historical purposes.
[virtualjaguar] / tools / fix-unix.sh
1 #! /bin/sh
2 #
3 #  Sets up the Allegro package for building under Unix, converting text
4 #  files from CR/LF to LF format.
5
6
7 echo "Converting NeoPocott files to Unix format..."
8
9 find . -type f "(" \
10    -name "*.c*" -o -name "*.cfg" -o \
11    -name "*.h" -o -name "*.s" -o \
12    -name "*.txt" -o -name "*.asm" -o \
13    -name "Makefile*" -o -name "readme.*" \
14    ")" \
15    -exec sh -c "echo {};
16                 mv {} _tmpfile;
17                 tr -d \\\r < _tmpfile > {};
18                 touch -r _tmpfile {}; 
19                 rm _tmpfile" \;
20
21 echo "Done!"