Initial Commit

This commit is contained in:
Jacob Alexander 2011-03-03 16:38:32 -08:00
commit f61225c321
5 changed files with 1489 additions and 0 deletions

25
build Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
#| Cleaner builder script, than plain usage of the Makefile
dir="Build"
#| If directory doesn't exist
if [ ! -d $dir ]; then
mkdir -p $dir
for file in {Makefile,*.c,*.h}; do
ln -s "`pwd`/$file" $dir/.
done
fi
cd $dir
make "$@"
cd $OLDPWD
#| On make clean, make it really clean
if [ "${1}" = "clean" ]; then
rm -r $dir
echo "Cleaned"
fi
exit 0