Skip to content
This repository was archived by the owner on Dec 23, 2018. It is now read-only.

Commit 20416da

Browse files
committed
Add a before_install_package hook for e.g. patching the source tree
1 parent 9153938 commit 20416da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/php-build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ make_package() {
8484
shift
8585

8686
pushd "$package_name" >&4
87+
before_install_package "$package_name"
8788
build_package "$package_name" $*
8889
after_install_package "$package_name"
8990
fix_directory_permissions
@@ -158,6 +159,10 @@ build_package_copy() {
158159
cp -R . "$PREFIX_PATH"
159160
}
160161

162+
before_install_package() {
163+
local stub=1
164+
}
165+
161166
after_install_package() {
162167
local stub=1
163168
}

0 commit comments

Comments
 (0)