summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-04-15 12:33:30 +0100
committerNick White <git@njw.me.uk>2009-04-15 12:33:30 +0100
commit2884c41158a7297398386811cd6703c2171b66a1 (patch)
tree15ba6d28902158ca112022c6ec009906b57b60e8
parent820c8592b643a6069de927605a769f938d4aa54e (diff)
downloadgemrb-gameinstallers-2884c41158a7297398386811cd6703c2171b66a1.tar.bz2
gemrb-gameinstallers-2884c41158a7297398386811cd6703c2171b66a1.zip
Enabled getpatch to specify outfile
-rw-r--r--includes/patch-includes.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/patch-includes.sh b/includes/patch-includes.sh
index 0f76409..c09cb81 100644
--- a/includes/patch-includes.sh
+++ b/includes/patch-includes.sh
@@ -7,7 +7,11 @@
function getpatch
{
url=$1
- filename=$(basename $url)
+ if [ $# -gt 1 ]; then
+ filename="$2"
+ else
+ filename=$(basename $url)
+ fi
if [ -f "$PATCHDIR/$filename" ]; then
cp "$PATCHDIR/$filename" $TMPDIR || die