diff options
| author | Tharre <tharre3@gmail.com> | 2014-04-08 09:19:33 +0200 | 
|---|---|---|
| committer | xRamses <tharre3@gmail.com> | 2014-04-08 09:19:33 +0200 | 
| commit | c766f073e60c3aa51a3cc1555af87ded5823e5a0 (patch) | |
| tree | 43595070e833b251b3f7ac7e94e5e992918194ef /Redofile | |
| download | redo-c766f073e60c3aa51a3cc1555af87ded5823e5a0.tar.gz redo-c766f073e60c3aa51a3cc1555af87ded5823e5a0.tar.xz redo-c766f073e60c3aa51a3cc1555af87ded5823e5a0.zip  | |
Initial codebase
Diffstat (limited to 'Redofile')
| -rw-r--r-- | Redofile | 25 | 
1 files changed, 25 insertions, 0 deletions
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  | 
