diff options
| author | 2023-04-30 18:31:18 -0400 | |
|---|---|---|
| committer | 2023-04-30 18:31:18 -0400 | |
| commit | 4de57f628bc74f00ba1885e91c84ea07c5405d8f (patch) | |
| tree | 5d91900751e826d491ff1b2ebc571a787e84f864 /scripts/macosx | |
| parent | 74d881cefa9097e58e129e37b9c44d680d8c7dfe (diff) | |
| parent | 3565aad630864ecdbe53fdaa501ea708555b3c7c (diff) | |
Update upstream source from tag 'upstream/3.4.4+dfsg'
Update to upstream version '3.4.4+dfsg'
with Debian dir 482614bd23f0ef52dabc9803477204ad88e917ed
Diffstat (limited to 'scripts/macosx')
| -rwxr-xr-x | scripts/macosx/compile_build_bundle.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/scripts/macosx/compile_build_bundle.sh b/scripts/macosx/compile_build_bundle.sh index 0165ebb..86c2982 100755 --- a/scripts/macosx/compile_build_bundle.sh +++ b/scripts/macosx/compile_build_bundle.sh @@ -13,7 +13,7 @@ if [ "$1" == "" ]; then esac fi else - QMAKE=$1 + QMAKE="$1" fi realpath() { @@ -22,41 +22,41 @@ realpath() { cdir=`pwd` cpu_cores=`sysctl -n hw.logicalcpu` -absolute_path=`realpath $0` -this_dir=`dirname $absolute_path` -parent_dir=`dirname $this_dir` -parent_dir=`dirname $parent_dir` +absolute_path=`realpath "$0"` +this_dir=`dirname "$absolute_path"` +parent_dir=`dirname "$this_dir"` +parent_dir=`dirname "$parent_dir"` if [ "$2" == "" ]; then read -p "Number of CPU cores to use for compiling (hit enter to use $cpu_cores): " new_cpu_cores case $new_cpu_cores in "" ) break;; - * ) cpu_cores=$new_cpu_cores; break;; + * ) cpu_cores="$new_cpu_cores"; break;; esac else - cpu_cores=$2 + cpu_cores="$2" fi -if [ -d $parent_dir/output ]; then +if [ -d "$parent_dir/output" ]; then read -p "Directory $parent_dir/output already exists. The script will delete and recreate it. Is that okay? (y/N) : " yn - case $yn in - [Yy]* ) rm -rf $parent_dir/output; break;; + case "$yn" in + [Yy]* ) rm -rf "$parent_dir/output"; break;; * ) echo "Aborted."; exit;; esac fi -cd $parent_dir -mkdir output output/build output/build/Plugins +cd "$parent_dir" +mkdir -p output/build/Plugins cd output/build $QMAKE CONFIG+=portable ../../SQLiteStudio3 -make -j $cpu_cores +make -j "$cpu_cores" || exit 1 cd Plugins $QMAKE CONFIG+=portable ../../../Plugins -make -j $cpu_cores +make -j "$cpu_cores" || exit 1 cd .. make bundle -cd $cdir +cd "$cdir" |
