From c766f073e60c3aa51a3cc1555af87ded5823e5a0 Mon Sep 17 00:00:00 2001 From: Tharre Date: Tue, 8 Apr 2014 09:19:33 +0200 Subject: Initial codebase --- Redofile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Redofile (limited to 'Redofile') diff --git a/Redofile b/Redofile new file mode 100644 index 0000000..c714912 --- /dev/null +++ b/Redofile @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2