Skip to content

Commit e24219a

Browse files
build: update build scripts
1 parent 0e9e7ef commit e24219a

4 files changed

Lines changed: 28 additions & 8 deletions

File tree

scripts/generate-linux.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
set -euo pipefail
44

55
printf "\nSubmodule check...\n"
6-
git submodule update --init
7-
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
6+
if [[ "$1" != "--skip-submodule-update" ]]; then
7+
git submodule update --init
8+
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
9+
else
10+
printf "Skipping submodule update, using local changes.\n"
11+
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
12+
fi
813

914
cd ./bdk-ffi/bdk-ffi/
1015

scripts/generate-macos-arm64.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
set -euo pipefail
44

55
printf "\nSubmodule check...\n"
6-
git submodule update --init
7-
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
6+
if [[ "$1" != "--skip-submodule-update" ]]; then
7+
git submodule update --init
8+
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
9+
else
10+
printf "Skipping submodule update, using local changes.\n"
11+
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
12+
fi
813

914
cd ./bdk-ffi/bdk-ffi/
1015

scripts/generate-macos-x86_64.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
set -euo pipefail
44

55
printf "\nSubmodule check...\n"
6-
git submodule update --init
7-
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
6+
if [[ "$1" != "--skip-submodule-update" ]]; then
7+
git submodule update --init
8+
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
9+
else
10+
printf "Skipping submodule update, using local changes.\n"
11+
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
12+
fi
813

914
cd ./bdk-ffi/bdk-ffi/
1015

scripts/generate-windows.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
set -euo pipefail
44

55
printf "\nSubmodule check...\n"
6-
git submodule update --init
7-
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
6+
if [[ "$1" != "--skip-submodule-update" ]]; then
7+
git submodule update --init
8+
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
9+
else
10+
printf "Skipping submodule update, using local changes.\n"
11+
printf "Submodule is checked out at commit: $(git submodule status)\n\n"
12+
fi
813

914
cd ./bdk-ffi/bdk-ffi/
1015

0 commit comments

Comments
 (0)