summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2014-05-13 10:33:48 +0000
committerJay Freeman <saurik@saurik.com>2014-05-13 10:33:48 +0000
commit96e76635da3c9990a9e3c6b7cbd6249ad54f487a (patch)
treee2b2e1458ba38c9c216108eb0c9d3e6f26e8daa9
parent8ac0cb3e925bce4505412e372869ecdb33eb545d (diff)
Support per-patch application arguments.
git-svn-id: http://svn.telesphoreo.org/trunk@780 514c082c-b64e-11dc-b46d-3d985efe055d
-rwxr-xr-xmake.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/make.sh b/make.sh
index 29e99de44..93d3e8dc9 100755
--- a/make.sh
+++ b/make.sh
@@ -67,8 +67,9 @@ function pkg:patch() {
continue;
fi
+ args=$(cat ${diff%.diff}.args 2>/dev/null || true)
echo "patching with ${diff}..."
- patch -p1 <"${diff}"
+ patch ${args:=-p1} <"${diff}"
done
}