-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautogen.sh
executable file
·36 lines (30 loc) · 1.04 KB
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
echo "Configuring Teo sources for the Linux platform..."
echo "# generated by autogen.sh" > makefile
echo "MAKEFILE_INC = makefile.lnx" >> makefile
echo "include makefile.all" >> makefile
if [ "$1" != "--quick" ]; then
find . -type d "(" \
-name ".hg" -prune \
")" -o \
-type f "(" \
-name "*.c" -o -name "*.h" -o -name "*.rc" -o -name "*.rh" -o \
-name "*.xpm" -o -name "*.sh" -o -name "makefile.*" -o \
-name "*.txt" -o -name "*.log" -o -name "*.bat" -o \
-name "*.BAT" -o -name "*.htm*"\
")" \
-exec sh -c "echo -n '\r \r{}';
mv {} _tmpfile;
tr -d \\\r < _tmpfile > {};
touch -r _tmpfile {};
rm _tmpfile" \;
find . -type d "(" \
-name ".hg" -prune \
")" -o \
-type f "(" \
-name "*.sh" \
")" \
-exec sh -c "echo -n '\r \r{}';
chmod +x {};" \;
echo
fi