OSDN Git Service

[fix] : Fixed build not work.
authorhayao <shun819.mail@gmail.com>
Tue, 23 Jun 2020 10:09:34 +0000 (19:09 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 23 Jun 2020 10:09:34 +0000 (19:09 +0900)
build.sh

index 06fc3c9..bf1aa84 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -476,6 +476,23 @@ prepare_build() {
             iso_version=${iso_version}-$(git rev-parse --short HEAD)
             cd - > /dev/null 2>&1
         fi
+    
+        # Generate iso file name.
+        local _channel_name
+        if [[ $(echo "${channel_name}" | sed 's/^.*\.\([^\.]*\)$/\1/') = "add" ]]; then
+            _channel_name="$(echo ${channel_name} | sed 's/\.[^\.]*$//')"
+        else
+            _channel_name="${channel_name}"
+        fi
+        if [[ "${japanese}" = true ]]; then
+            _channel_name="${_channel_name}-jp"
+        fi
+        if [[ "${nochname}" = true ]]; then
+            iso_filename="${iso_name}-${iso_version}-${arch}.iso"
+        else
+            iso_filename="${iso_name}-${_channel_name}-${iso_version}-${arch}.iso"
+        fi
+        _msg_debug "Iso filename is ${iso_filename}"
 
         # Save the value of the variable for use in rebuild.
         save_var \
@@ -486,6 +503,7 @@ prepare_build() {
             iso_publisher \
             iso_application \
             iso_version \
+            iso_filename \
             install_dir \
             work_dir \
             out_dir \
@@ -516,7 +534,7 @@ prepare_build() {
             noloopmod
     else
         # Load rebuild file
-        load_config "${work_dir}/"
+        load_config "${rebuildfile}"
 
         # Delete the lock file.
         # remove "$(ls ${work_dir}/* | grep "build.make")"
@@ -531,24 +549,6 @@ prepare_build() {
     done
 
 
-    # Generate iso file name.
-    local _channel_name
-    if [[ $(echo "${channel_name}" | sed 's/^.*\.\([^\.]*\)$/\1/') = "add" ]]; then
-        _channel_name="$(echo ${channel_name} | sed 's/\.[^\.]*$//')"
-    else
-        _channel_name="${channel_name}"
-    fi
-    if [[ "${japanese}" = true ]]; then
-        _channel_name="${_channel_name}-jp"
-    fi
-    if [[ "${nochname}" = true ]]; then
-        iso_filename="${iso_name}-${iso_version}-${arch}.iso"
-    else
-        iso_filename="${iso_name}-${_channel_name}-${iso_version}-${arch}.iso"
-    fi
-    _msg_debug "Iso filename is ${iso_filename}"
-
-
      # Check packages
     if [[ "${nodepend}" = false ]] && [[ "${arch}" = $(uname -m) ]] ; then
         local installed_pkg