Skip to content

Commit 0e6f5b6

Browse files
committed
install: Run bootstrap.sh if configure is missing.
In anticipation of configure no longer being included in the Git repo, run the bootstrap script if we detect it's missing.
1 parent 48116ab commit 0e6f5b6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

phreaknet.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# PhreakScript
44
# (C) 2021-2025 Naveen Albert, PhreakNet, and others - https://github.com/InterLinked1/phreakscript ; https://portal.phreaknet.org ; https://docs.phreaknet.org
5-
# v1.3.1 (2025-09-22)
5+
# v1.3.2 (2026-01-08)
66

77
# Setup (as root):
88
# cd /usr/local/src
@@ -13,6 +13,7 @@
1313
# phreaknet install
1414

1515
## Begin Change Log:
16+
# 2026-01-08 1.3.2 Run bootstrap.sh if needed
1617
# 2025-09-22 1.3.1 Improve script portability
1718
# 2025-07-07 1.3.0 Use GitHub API to download patches
1819
# 2025-01-24 1.2.2 Asterisk: Target 22.2.0
@@ -3899,6 +3900,12 @@ elif [ "$cmd" = "install" ]; then
38993900
cd $AST_SOURCE_PARENT_DIR/$AST_SRC_DIR
39003901
fi
39013902

3903+
# If configure isn't found, run the bootstrap script first to generate it
3904+
# https://github.com/asterisk/asterisk/pull/1696
3905+
if [ ! -f ./configure ] || [ ! -f ./menuselect/configure ]; then
3906+
./bootstrap.sh
3907+
fi
3908+
39023909
if [ "$DEVMODE" = "1" ]; then
39033910
configure_devmode
39043911
else

0 commit comments

Comments
 (0)