diff options
-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 |