diff options
author | supermerill <anonymous@anon.org> | 2021-08-21 15:07:57 +0300 |
---|---|---|
committer | supermerill <anonymous@anon.org> | 2021-08-21 15:07:57 +0300 |
commit | 9a980ed57ff8e988b084f2972516af2b1d2daf9d (patch) | |
tree | 6a25d466ffc389ff05b6d405bc07d47c238b100e | |
parent | f88f224452cee36acfb472622966bb0e77739457 (diff) |
update BuildLinux to display usage if no optionslinux-work
-rwxr-xr-x | BuildLinux.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/BuildLinux.sh b/BuildLinux.sh index 0107695d9..189b08914 100755 --- a/BuildLinux.sh +++ b/BuildLinux.sh @@ -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 |