diff --git a/build.sh b/build.sh index 479cee42b..4375bac7b 100755 --- a/build.sh +++ b/build.sh @@ -84,28 +84,7 @@ getclm() { cut -d " " -f "${1}"; } echo_blank(){ yes " " 2> /dev/null | head -n "${1}" | tr -d "\n"; } _usage () { - echo "usage ${0} [options] [channel]" - echo - echo "A channel is a profile of AlterISO settings." - echo - echo " General options:" - echo " -b | --boot-splash Enable boot splash" - echo " -e | --cleanup | --cleaning Enable post-build cleaning" - echo " -r | --tarball Build rootfs in tar.xz format" - echo " -h | --help This help message and exit" - echo - echo " -a | --arch Set iso architecture" - echo " -c | --comp-type Set SquashFS compression type (gzip, lzma, lzo, xz, zstd)" - echo " -g | --gpgkey Set gpg key" - echo " -l | --lang Specifies the default language for the live environment" - echo " -k | --kernel Set special kernel type. See below for available kernels" - echo " -o | --out Set the output directory" - echo " -p | --password Set a live user password" - echo " -t | --comp-opts Set compressor-specific options." - echo " -u | --user Set user name" - echo " -w | --work Set the working directory" - echo - + cat "${script_path}/docs/build.sh/help.1" local blank="29" _arch _dirname _type _output _first for _type in "locale" "kernel"; do echo " ${_type} for each architecture:" @@ -125,36 +104,7 @@ _usage () { _first=false done done - - echo - echo " Debug options: Please use at your own risk." - echo " -d | --debug Enable debug messages" - echo " -x | --bash-debug Enable bash debug mode(set -xv)" - echo " --channellist Output the channel list and exit" - echo " --config Load additional config file" - echo " --[no]gitversion Add Git commit hash to image file version" - echo " --logpath Set log file path (use with --log)" - echo " --[no]log (No) log ;re-run script with tee" - echo " --msgdebug Enables output debugging" - echo " --noaur Ignore aur packages (Use only for debugging)" - echo " --nocolor No output colored output" - echo " --[no]confirm (No) check the settings before building" - echo " --nochkver No check the version of the channel" - echo " --nodebug Disable all debug messages" - echo " --noefi No efi boot (Use only for debugging)" - echo " --noloopmod No check and load kernel module automatically" - echo " --[no]depend (No) check package dependencies before building" - echo " --noiso No build iso image (Use with --tarball)" - echo " --nosigcheck No pacman signature check" - echo " --pacman-debug Enable pacman debug mode" - echo " --normwork No remove working dir" - echo " --nopkgbuild Ignore PKGBUILD (Use only for debugging)" - echo " --tar-type Set compression type (gzip, lzma, lzo, xz, zstd)" - echo " --tar-opts