Skip to content

Commit 02baed4

Browse files
committed
build scripts
1 parent ab851e7 commit 02baed4

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

scripts/v3.12/php-7.4/build.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ EXTENSIONS="amqp apcu ast ds hashids imagick libsodium memcached mongodb msgpack
1212
SOURCES_PATH=$(pwd)
1313

1414
# ensure starts on sources path.
15-
cd ${SOURCES_PATH}
15+
# shellcheck disable=SC2164
16+
cd "${SOURCES_PATH}"
1617

1718
# function for building packages.
1819
function build_package()
@@ -22,21 +23,23 @@ function build_package()
2223
# ensure previously built packages are available.
2324
sudo apk update
2425
# enter package source directory.
26+
# shellcheck disable=SC2164
2527
cd "$SOURCES_PATH/$PACKAGE_NAME"
2628
# give a little feedback about the current package being built.
2729
echo "----> Building Package: $PACKAGE_NAME"
2830
# checksum source files before build.
29-
abuild checksum
31+
# abuild checksum
3032
# build the package from source.
3133
abuild -r
3234
# return shell to previous location for safe scripting!
33-
cd ${SOURCES_PATH}
35+
# shellcheck disable=SC2164
36+
cd "${SOURCES_PATH}"
3437
}
3538

3639
# build base packages.
3740
for PACKAGE in ${PACKAGES}; do
3841
# call the build function.
39-
build_package ${PACKAGE}
42+
build_package "${PACKAGE}"
4043
done
4144

4245
# when full flag is provided, build PHP itself first.
@@ -48,8 +51,9 @@ fi
4851
# build extensions.
4952
for EXTENSION in ${EXTENSIONS}; do
5053
# call the build function, prefixing with "php7-".
51-
build_package "php7-"${EXTENSION}
54+
build_package "php7-${EXTENSION}"
5255
done
5356

5457
# ensure the final destination is the sources path.
55-
cd ${SOURCES_PATH}
58+
# shellcheck disable=SC2164
59+
cd "$SOURCES_PATH"

scripts/v3.12/php-8.0/build.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ EXTENSIONS="apcu hashids imagick libsodium memcached mongodb msgpack psr redis s
1313
SOURCES_PATH=$(pwd)
1414

1515
# ensure starts on sources path.
16-
cd ${SOURCES_PATH}
16+
# shellcheck disable=SC2164
17+
cd "${SOURCES_PATH}"
1718

1819
# function for building packages.
1920
function build_package()
@@ -23,6 +24,7 @@ function build_package()
2324
# ensure previously built packages are available.
2425
sudo apk update
2526
# enter package source directory.
27+
# shellcheck disable=SC2164
2628
cd "$SOURCES_PATH/$PACKAGE_NAME"
2729
# give a little feedback about the current package being built.
2830
echo "----> Building Package: $PACKAGE_NAME"
@@ -31,13 +33,14 @@ function build_package()
3133
# build the package from source.
3234
abuild -r
3335
# return shell to previous location for safe scripting!
34-
cd ${SOURCES_PATH}
36+
# shellcheck disable=SC2164
37+
cd "${SOURCES_PATH}"
3538
}
3639

3740
# build base packages.
3841
for PACKAGE in ${PACKAGES}; do
3942
# call the build function.
40-
build_package ${PACKAGE}
43+
build_package "${PACKAGE}"
4144
done
4245

4346
# when full flag is provided, build PHP itself first.
@@ -49,8 +52,9 @@ fi
4952
# build extensions.
5053
for EXTENSION in ${EXTENSIONS}; do
5154
# call the build function, prefixing with "php8-".
52-
build_package "php8-"${EXTENSION}
55+
build_package "php8-${EXTENSION}"
5356
done
5457

5558
# ensure the final destination is the sources path.
56-
cd ${SOURCES_PATH}
59+
# shellcheck disable=SC2164
60+
cd "$SOURCES_PATH"

0 commit comments

Comments
 (0)