OSDN Git Service

[update] : Added comp-opts reset
authorhayao <shun819.mail@gmail.com>
Fri, 2 Oct 2020 09:59:21 +0000 (18:59 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 2 Oct 2020 09:59:21 +0000 (18:59 +0900)
allarch.sh
build.sh

index 5cf881e..29d4b71 100755 (executable)
@@ -225,8 +225,8 @@ _usage () {
     echo "                                  Default: ${out_dir}"
     echo "    -p | --password <password>   Set a live user password"
     echo "                                  Default: ${password}"
-    echo "    -t | --comp-opts <options>   Set compressor-specific options"
-    echo "                                  Default: empty"
+    echo "    -t | --comp-opts <options>   Set compressor-specific options. Specify \"reset\" to empty"
+    echo "                                  Default: -Xcompression-level 20"
     echo "    -u | --user <username>       Set user name"
     echo "                                  Default: ${username}"
     echo "    -w | --work <work_dir>       Set the working directory"
@@ -1385,7 +1385,11 @@ while :; do
             shift 1
             ;;
         -t | --comp-opts)
-            sfs_comp_opt="${2}"
+            if [[ "${2}" = "reset" ]]; then
+                sfs_comp_opt=""
+            else
+                sfs_comp_opt="${2}"
+            fi
             shift 2
             ;;
         -u | --user)
index ee0bd87..302e767 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -224,8 +224,8 @@ _usage () {
     echo "                                  Default: ${out_dir}"
     echo "    -p | --password <password>   Set a live user password"
     echo "                                  Default: ${password}"
-    echo "    -t | --comp-opts <options>   Set compressor-specific options"
-    echo "                                  Default: empty"
+    echo "    -t | --comp-opts <options>   Set compressor-specific options. Specify \"reset\" to empty"
+    echo "                                  Default: -Xcompression-level 20"
     echo "    -u | --user <username>       Set user name"
     echo "                                  Default: ${username}"
     echo "    -w | --work <work_dir>       Set the working directory"
@@ -1456,7 +1456,11 @@ while :; do
             shift 1
             ;;
         -t | --comp-opts)
-            sfs_comp_opt="${2}"
+            if [[ "${2}" = "reset" ]]; then
+                sfs_comp_opt=""
+            else
+                sfs_comp_opt="${2}"
+            fi
             shift 2
             ;;
         -u | --user)