Browse Source

„build_spk.sh“ ändern

master
Stephan Geisler 1 month ago
parent
commit
0178352ffb
  1. 17
      build_spk.sh

17
build_spk.sh

@ -203,8 +203,21 @@ printf "\n - INFO: insert language strings to WIZARD_UIFILES ...\n"
sed -i "s|lang_wizui_uninstall_desc|$(get_key_value "$build_tmp/APP/ui/lang/lang_${lang}.txt" lang_wizui_uninstall_desc)|" "${uninstall_uifile_lang}"
# upgrade_uifile:
[ -f "$build_tmp/$PKG/WIZARD_UIFILES/upgrade_uifile_${lang}" ] && sed -i "s|lang_wizui_upgrade_title|$(get_key_value "$build_tmp/APP/ui/lang/lang_${lang}.txt" lang_wizui_upgrade_title)|" "$build_tmp/$PKG/WIZARD_UIFILES/upgrade_uifile_${lang}"
[ -f "$build_tmp/$PKG/WIZARD_UIFILES/upgrade_uifile_${lang}" ] && sed -i "s|lang_wizui_upgrade_desc|$(get_key_value "$build_tmp/APP/ui/lang/lang_${lang}.txt" lang_wizui_upgrade_desc)|" "$build_tmp/$PKG/WIZARD_UIFILES/upgrade_uifile_${lang}"
upgrade_uifile_lang="$build_tmp/$PKG/WIZARD_UIFILES/upgrade_uifile_${lang}"
if [ ! -f "${upgrade_uifile_lang}" ]; then
echo '[' > "${upgrade_uifile_lang}"
echo ' {' >> "${upgrade_uifile_lang}"
echo ' "step_title" : "lang_wizui_upgrade_title",' >> "${upgrade_uifile_lang}"
echo ' "items" : [' >> "${upgrade_uifile_lang}"
echo ' {' >> "${upgrade_uifile_lang}"
echo ' "desc" : "<p>lang_wizui_upgrade_desc</p>"' >> "${upgrade_uifile_lang}"
echo ' }' >> "${upgrade_uifile_lang}"
echo ' ]' >> "${upgrade_uifile_lang}"
echo ' }' >> "${upgrade_uifile_lang}"
echo ']' >> "${upgrade_uifile_lang}"
fi
[ -f "$build_tmp/$PKG/WIZARD_UIFILES/upgrade_uifile_${lang}" ] && sed -i "s|lang_wizui_upgrade_title|$(get_key_value "$build_tmp/APP/ui/lang/lang_${lang}.txt" lang_wizui_upgrade_title)|" "${upgrade_uifile_lang}"
[ -f "$build_tmp/$PKG/WIZARD_UIFILES/upgrade_uifile_${lang}" ] && sed -i "s|lang_wizui_upgrade_desc|$(get_key_value "$build_tmp/APP/ui/lang/lang_${lang}.txt" lang_wizui_upgrade_desc)|" "${upgrade_uifile_lang}"
done
build_version=$(grep version "$build_tmp/$PKG/INFO" | awk -F '"' '{print $2}')

Loading…
Cancel
Save