mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 03:29:02 +08:00
update BuildLinux to display usage if no options
This commit is contained in:
parent
8c0576d9b2
commit
8a927576ec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user