1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#!/bin/sh
# $Id: get-orig-source 135 2004-06-11 22:04:47Z jeroen $
# Copyright 2004 Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
# This script may be distributed under the conditions of the GPL v2
set -e
if [ "$1" = "" ]; then
echo "You need to specify the version of the source tarball as argument"
exit 1
fi
echo "***>" Going to make a source tarball for vimhelp-fr
TMPDIR=`mktemp -d -t vimhelp-fr.debian.XXXXXX`
SOURCEDIR=$TMPDIR/vimhelp-fr-$1
mkdir $SOURCEDIR
echo "***>" Using $TMPDIR
for info in debian/upstream/*.info; do
. $info
echo "Downloading $Filename? $Include"
[ "$Download" != "yes" ] && continue
echo -n "Downloading... "
if ! wget -q -O$SOURCEDIR/$Filename "$Url"; then
echo "failed ($Url)"
exit 1
fi
echo done
done
echo "***>" Creating tarball...
NEW=`mktemp vimhelp-fr_$1.orig.tar.gz.XXXXXX`
tar czvCf $TMPDIR $NEW vimhelp-fr-$1
mv $NEW vimhelp-fr_$1.orig.tar.gz
echo "***>" Cleaning up...
rm -r $TMPFILE $TMPDIR
echo "***>" Done
|