mirror of
https://github.com/scummvm/dockerized-bb.git
synced 2026-06-20 05:46:00 +00:00
ALL: Add a suffix argument to do_patch
It allows patching for composed packages
This commit is contained in:
@@ -14,8 +14,13 @@ __do_clean_bdir () {
|
||||
}
|
||||
|
||||
__do_patch () {
|
||||
if [ -d "$PACKAGE_DIR/patches" ]; then
|
||||
for p in "$PACKAGE_DIR/patches"/*.patch; do
|
||||
local suffix
|
||||
if [ -n "$1" ]; then
|
||||
suffix="-$1"
|
||||
fi
|
||||
|
||||
if [ -d "$PACKAGE_DIR/patches$suffix" ]; then
|
||||
for p in "$PACKAGE_DIR/patches$suffix"/*.patch; do
|
||||
echo "Applying $p"
|
||||
patch -t -p1 < "$p"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user