aboutsummaryrefslogtreecommitdiffstats
path: root/Redofile
diff options
context:
space:
mode:
Diffstat (limited to 'Redofile')
-rw-r--r--Redofile13
1 files changed, 5 insertions, 8 deletions
diff --git a/Redofile b/Redofile
index c714912..a1bdd41 100644
--- a/Redofile
+++ b/Redofile
@@ -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