mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Ports: Support pre_configure script
This is useful if we want to do something after patching but before running the configure script - e.g. creating the configure script using another script :^)
This commit is contained in:
parent
6b513ca97e
commit
7feb48b1da
Notes:
sideshowbarker
2024-07-19 07:34:52 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/7feb48b1dac Pull-request: https://github.com/SerenityOS/serenity/pull/1809
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,9 @@ func_defined patch_internal || patch_internal() {
|
|||
done
|
||||
fi
|
||||
}
|
||||
func_defined pre_configure || pre_configure() {
|
||||
:
|
||||
}
|
||||
func_defined configure || configure() {
|
||||
run ./"$configscript" --host=i686-pc-serenity $configopts
|
||||
}
|
||||
|
@ -242,6 +245,7 @@ do_patch() {
|
|||
do_configure() {
|
||||
if [ "$useconfigure" = "true" ]; then
|
||||
echo "Configuring $port!"
|
||||
pre_configure
|
||||
chmod +x "${workdir}"/"$configscript"
|
||||
configure
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue