update BuildLinux to display usage if no options

This commit is contained in:
supermerill 2021-08-21 14:07:57 +02:00 committed by supermerill
parent 8c0576d9b2
commit 8a927576ec

View File

@ -3,7 +3,7 @@
export ROOT=`pwd`
export NCORES=`nproc --all`
unset name
while getopts ":dsiuh" opt; do
case ${opt} in
u )
@ -30,6 +30,18 @@ while getopts ":dsiuh" opt; do
esac
done
if [ $OPTIND -eq 1 ]
then
echo "Usage: ./BuildLinux.sh [-i][-u][-d][-s]"
echo " -i: Generate appimage"
echo " -d: build deps"
echo " -s: build slic3r"
echo " -u: only update clock & dependency packets (need sudo)"
echo "For a first use, you want to 'sudo ./BuildLinux.sh -u'"
echo " and then './BuildLinux.sh -dsi'"
exit 0
fi
# mkdir build
if [ ! -d "build" ]
then