blob: c7149128f91aa98e83013bf73c98f0316b9a0509 (
plain) (
blame)
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
|
# define all project wide variables
export ROOTDIR=$(pwd)
export SRCDIR=$ROOTDIR/src
export OUTDIR=$ROOTDIR/out
export VERSION="pre-0.01"
# TODO: improve this
if [ "$1" = "all" ]; then
redo-ifchange $OUTDIR/redo $OUTDIR/redo-ifchange
elif [ "$1" = "clean" ]; then
rm -rf $OUTDIR/*.tmp $OUTDIR/*.o $OUTDIR/redo $OUTDIR/redo-ifchange $OUTDIR/CC
# autoconf stuff
rm -rf autom4te.cache config.h.in configure config.status config.log config.h
elif [ "$1" = "install" ]; then
redo-ifchange all
sudo install $OUTDIR/redo /usr/bin
sudo install $OUTDIR/redo-ifchange /usr/bin
elif [ "$1" = "test" ]; then
echo "Sadly there are no tests yet ..."
elif [ "$1" = "zip" ]; then
redo-ifchange clean # we always want to zip the clean workstate
zip -r redo.zip *
fi
|