summaryrefslogtreecommitdiffstats
path: root/source/Code/genmakefile.sh
diff options
context:
space:
mode:
authorsicarius <devnull@localhost>2007-02-11 19:32:03 +0100
committersicarius <devnull@localhost>2007-02-11 19:32:03 +0100
commit56d9bdd39ed36c36e9a61411b86c76d5228b2133 (patch)
tree0cca7a63a5609f91d1912ecbde6743938c9ae5d2 /source/Code/genmakefile.sh
parent644121b478a57772150f460c3c8cd035aa6767a2 (diff)
downloadrc2007-soccer-56d9bdd39ed36c36e9a61411b86c76d5228b2133.tar
rc2007-soccer-56d9bdd39ed36c36e9a61411b86c76d5228b2133.zip
Added lot's of code-files used during work
Diffstat (limited to 'source/Code/genmakefile.sh')
-rwxr-xr-xsource/Code/genmakefile.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/Code/genmakefile.sh b/source/Code/genmakefile.sh
new file mode 100755
index 0000000..0ea26a7
--- /dev/null
+++ b/source/Code/genmakefile.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+cat makefile | grep -v "^SRC +=" > makefile.new
+for row in $(find | grep .c$); do
+ if [ "$row" != "./main.c" ]; then
+ echo "SRC += $row" >> makefile.new
+ fi
+done
+rm makefile
+mv makefile.new makefile
+