Skip to content

Commit 2705298

Browse files
committed
Add a before_install_package hook for e.g. patching the source tree
1 parent 8f75623 commit 2705298

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/ruby-build

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

8484
pushd "$package_name" >&4
85+
before_install_package "$package_name"
8586
build_package "$package_name" $*
8687
after_install_package "$package_name"
8788
fix_directory_permissions
@@ -206,6 +207,10 @@ build_package_copy() {
206207
cp -R . "$PREFIX_PATH"
207208
}
208209

210+
before_install_package() {
211+
local stub=1
212+
}
213+
209214
after_install_package() {
210215
local stub=1
211216
}

0 commit comments

Comments
 (0)