diff options
author | nick <myownlittlworld@hotmail.com> | 2009-05-02 23:38:54 -0500 |
---|---|---|
committer | nick <myownlittlworld@hotmail.com> | 2009-05-02 23:38:54 -0500 |
commit | e2f6690cc2cf57df3788a20f5be2dfbdf5d660b8 (patch) | |
tree | 023c1f657bd8e76080a1aa232c5e3238fecd1a2c /includes/patch-includes.sh | |
parent | d400ae382e09b091fb372ffc9163273ff40ddb1d (diff) | |
parent | 28083ccefa13e4137afb300544072e7e176c7de8 (diff) | |
download | gemrb-gameinstallers-e2f6690cc2cf57df3788a20f5be2dfbdf5d660b8.tar.bz2 gemrb-gameinstallers-e2f6690cc2cf57df3788a20f5be2dfbdf5d660b8.zip |
Merged with latest from upstream.
Diffstat (limited to 'includes/patch-includes.sh')
-rw-r--r-- | includes/patch-includes.sh | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/includes/patch-includes.sh b/includes/patch-includes.sh index 0f76409..7081e9d 100644 --- a/includes/patch-includes.sh +++ b/includes/patch-includes.sh @@ -1,3 +1,18 @@ +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# See <http://www.gnu.org/licenses/> for a copy of the GNU General +# Public License. + ### default variables ### [ -z "$PATCHDIR" ] && export PATCHDIR="$PWD" @@ -6,8 +21,14 @@ function getpatch { + # usage: getpatch url [filename] + 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 |