aboutsummaryrefslogtreecommitdiff
path: root/project/setup
diff options
context:
space:
mode:
Diffstat (limited to 'project/setup')
-rw-r--r--project/setup/install.sh19
-rw-r--r--project/setup/setup-install.sh2
2 files changed, 21 insertions, 0 deletions
diff --git a/project/setup/install.sh b/project/setup/install.sh
index d39e8f9..aa5bce0 100644
--- a/project/setup/install.sh
+++ b/project/setup/install.sh
@@ -45,6 +45,9 @@ fi
#------------------------------------------------------------------------------
# settings
+SYSTEM="@@SYSTEM@@"
+SYSTEM2="@@SYSTEM2@@"
+
BASE_PATH="@@INSTALL-PATH@@"
BIN_PATH="$BASE_PATH/bin"
SHARE_PATH="$BASE_PATH/share/szs"
@@ -55,6 +58,20 @@ SHARE_FILES="@@SHARE-FILES@@"
INST_FLAGS="-p"
#------------------------------------------------------------------------------
+# scan config
+
+if [[ -f install-config.txt ]]
+then
+ res_install=
+ res_config=
+ res_share=
+ . <( ./wszst config --bash --install --config install-config.txt )
+ echo "res_install=$res_install"
+ echo "res_config=$res_config"
+ echo "res_share=$res_share"
+fi
+
+#------------------------------------------------------------------------------
# make?
make=0
@@ -75,6 +92,8 @@ do
install $INST_FLAGS "bin/$f" "$BIN_PATH/$f"
done
+[[ $SYSTEM = mac ]] && xattr -dr com.apple.quarantine "$BIN_PATH" || true
+
#------------------------------------------------------------------------------
echo "*** install share files to $SHARE_PATH"
diff --git a/project/setup/setup-install.sh b/project/setup/setup-install.sh
new file mode 100644
index 0000000..20a5167
--- /dev/null
+++ b/project/setup/setup-install.sh
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+./wszst config --install --sections >install-config.txt