blob: 0f76409dcbe153e2b4e91d829483d96c6a17938b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
### default variables ###
[ -z "$PATCHDIR" ] && export PATCHDIR="$PWD"
### functions ###
function getpatch
{
url=$1
filename=$(basename $url)
if [ -f "$PATCHDIR/$filename" ]; then
cp "$PATCHDIR/$filename" $TMPDIR || die
else
wget $url -O $TMPDIR/$filename || die
fi
}
|