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
|
#!/bin/sh -e
# called by uscan with '--upstream-version' <version> <file>
DIR=enthought-chaco2-$2.orig
# cleanup the upstream sources
tar zxf $3
mv enable-$2 $DIR
# remove freetype2 source from enthought.kiva
(cd $DIR; rm -rf kiva/agg/freetype2)
# remove non-free gpc sources
(cd $DIR; rm -rf kiva/agg/agg-24/gpc)
# create the tarball
GZIP=--best tar -c -z -f $3 $DIR
rm -rf $DIR
# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
. .svn/deb-layout
mv $3 $origDir
echo "moved $3 to $origDir"
fi
|