add usage function
This commit is contained in:
parent
a9a58fb900
commit
2338579250
1 changed files with 17 additions and 3 deletions
|
@ -38,6 +38,8 @@ run()
|
||||||
else
|
else
|
||||||
echo "nothing to update"
|
echo "nothing to update"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#TODO: check paroli repository
|
||||||
}
|
}
|
||||||
|
|
||||||
buildpyneo()
|
buildpyneo()
|
||||||
|
@ -90,9 +92,21 @@ fullclean()
|
||||||
rm -rf $PAROLIGIT
|
rm -rf $PAROLIGIT
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
usage()
|
||||||
echo "no arguments supplied"
|
{
|
||||||
|
echo "usage: ./pyneo-daily ARG"
|
||||||
|
echo " setup does an intial setup"
|
||||||
|
echo " run updates git and if new versions are available, runs buildpyneo"
|
||||||
|
echo " and buildparoli accordingly"
|
||||||
|
echo " buildall runs buildpyneo and buildparoli"
|
||||||
|
echo " buildpyneo builds pyneo deb source packages from current git version"
|
||||||
|
echo " buildparoli builds paroli deb source packages from current git version"
|
||||||
|
echo " fullclean removes build directory, source packages and git repositories"
|
||||||
exit 0
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
usage
|
||||||
else
|
else
|
||||||
for arg in $@; do
|
for arg in $@; do
|
||||||
case $arg in
|
case $arg in
|
||||||
|
@ -123,7 +137,7 @@ else
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "unknown arg $arg"
|
echo "unknown arg $arg"
|
||||||
exit 1
|
usage
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue