diff options
author | Tharre <tharre3@gmail.com> | 2014-07-22 18:30:49 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2014-07-22 18:30:49 +0200 |
commit | cabc74b6a557705043e248ebdbd969ebcc247311 (patch) | |
tree | db8c0cbcd0186f31c67b3705e99a050d09e590dc | |
parent | aab81a6025e92c6ccab5810e1441fa7485a9159b (diff) | |
download | redo-cabc74b6a557705043e248ebdbd969ebcc247311.tar.gz redo-cabc74b6a557705043e248ebdbd969ebcc247311.tar.xz redo-cabc74b6a557705043e248ebdbd969ebcc247311.zip |
Cleanup Redofile and add support for custom install paths with DESTDIR
-rw-r--r-- | Redofile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -5,7 +5,7 @@ export SRCDIR=$ROOTDIR/src export OUTDIR=$ROOTDIR/out export VERSION="pre-0.01" -# TODO: improve this +DESTDIR=${DESTDIR-/usr/bin} if [ "$1" = "all" ]; then redo-ifchange $OUTDIR/redo $OUTDIR/redo-ifchange @@ -15,11 +15,8 @@ elif [ "$1" = "clean" ]; then 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 * + mkdir -p $DESTDIR + install $OUTDIR/redo $DESTDIR + install $OUTDIR/redo-ifchange $DESTDIR + echo "Finished installing." fi |