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
|
#!/bin/bash
# bail out upon error
set -e
PACKAGE=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
TARDIR=../tarballs
mkdir -p $TARDIR
VERSION=`uscan --rename --verbose --force-download |
grep "Newest version on remote site is .* local version is .*" |
head -n 1 |
sed "s/Newest version on remote site is \([a-z0-9.]\+\),.*/\1/"`
mkdir -p $TARDIR
cd $TARDIR
UTAR="${PACKAGE}_${VERSION}.orig.tar.gz"
mv ../${UTAR} .
tar -xzf ${UTAR}
mv pyclips ${PACKAGE}_${VERSION}+clips.orig # .orig is requested by Developers Reference 3.4.4 <C2><A7>6.7.8.2
cd ${PACKAGE}_${VERSION}+clips.orig
wget http://pyclips.sourceforge.net/files/CLIPSSrc.zip
cd ..
rm $UTAR
BZIP2="--best" tar -cjf ${PACKAGE}_${VERSION}+clips.orig.tar.bz2 ${PACKAGE}_${VERSION}+clips.orig
rm -rf ${PACKAGE}_${VERSION}+clips.orig
|