1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 06:14:58 +00:00

Ports: Add pre_fetch to .port_include.sh

This commit is contained in:
Egor Ananyin 2021-06-10 19:57:29 +03:00 committed by Linus Groh
parent a0412e0d5e
commit 142f9db5bd

View file

@ -305,6 +305,10 @@ fetch() {
post_fetch
}
func_defined pre_patch || pre_patch() {
:
}
func_defined patch_internal || patch_internal() {
# patch if it was not yet patched (applying patches multiple times doesn't work!)
if [ -d patches ]; then
@ -421,6 +425,7 @@ do_fetch() {
}
do_patch() {
echo "Patching $port!"
pre_patch
patch_internal
}
do_configure() {