diff options
author | Nick White <git@njw.me.uk> | 2009-04-15 12:33:30 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2009-04-15 12:33:30 +0100 |
commit | 2884c41158a7297398386811cd6703c2171b66a1 (patch) | |
tree | 15ba6d28902158ca112022c6ec009906b57b60e8 | |
parent | 820c8592b643a6069de927605a769f938d4aa54e (diff) | |
download | gemrb-gameinstallers-2884c41158a7297398386811cd6703c2171b66a1.tar.bz2 gemrb-gameinstallers-2884c41158a7297398386811cd6703c2171b66a1.zip |
Enabled getpatch to specify outfile
-rw-r--r-- | includes/patch-includes.sh | 6 |
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 |