OSDN Git Service

Merge branch master of github.com:FascodeNet/LFBS
authorhayao <shun819.mail@gmail.com>
Fri, 20 Nov 2020 23:48:09 +0000 (08:48 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 20 Nov 2020 23:48:09 +0000 (08:48 +0900)
1  2 
build.sh

diff --cc build.sh
--- 1/lfbs
+++ b/build.sh
@@@ -202,9 -201,10 +201,11 @@@ _usage () 
      echo "                           Default: ${out_dir}"
      echo "    -w | --work <work_dir> Set the working directory"
      echo "                           Default: ${work_dir}"
+     echo "    -c | --cache <cache_dir> Set the cache directory"
+     echo "                           Default: ${cache_dir}"
      echo
 -    echo "    -d | --debug           "
 +    echo "    -d | --debug           Enable debug messages"
 +    echo "    -x | --bash-debug      Enable bash debug mode(set -xv)"
      echo "    -h | --help            This help message and exit"
      echo
      echo "You can switch between installed packages, files included in images, etc. by channel."
@@@ -488,8 -539,8 +512,9 @@@ make_checksum() 
  # 引数解析()
  # 参考記事:https://0e0.pw/ci83 https://0e0.pw/VJlg
  
- _opt_short="w:l:o:ha:-:m:c:dx"
- _opt_long="help,arch:,codename:,debug,help,lang,mirror:,out:,work,cache-only,bash-debug"
 -_opt_short="w:l:o:hba:-:m:c:d"
 -_opt_long="help,arch:,codename:,debug,help,lang,mirror:,out:,work,cache-only,bootsplash"
++
++_opt_short="w:l:o:hba:-:m:c:dx"
++_opt_long="help,arch:,codename:,debug,help,lang,mirror:,out:,work,cache-only,bootsplash,bash-debug"
  OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}")
  
  if [[ ${?} != 0 ]]; then