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 42 43
|
#!/bin/sh -e
# $1 version
TAR=../enthought-traits-ui_$1.orig.tar.gz
DIR=enthought-traits-ui_$1.orig
# package list (latest upstream version)
PACKAGE_LIST="
enthought.developer-2.0.4.tar.gz
enthought.io-2.0.4.tar.gz
enthought.naming-2.0.4.tar.gz
enthought.pyface-2.0.4.tar.gz
enthought.resource-2.0.4.tar.gz
enthought.sweet_pickle-2.1.0.tar.gz
enthought.traits.ui.wx-2.0.5.tar.gz
enthought.type_manager-2.0.4.tar.gz
enthought.util-2.0.4.tar.gz
"
# download the tarballs
REPO=http://code.enthought.com/enstaller/eggs/source/
mkdir $DIR
(cd $DIR; \
for package in $PACKAGE_LIST
do
wget $REPO/$package;
name=`echo $package | sed -e 's/-.*//'`;
dir=`echo $package | sed -e 's/\.tar.*//'`;
tar zxf $package;
mv $dir $name;
rm $package;
done )
# create the tarball
GZIP=--best tar -c -z -f $TAR $DIR
rm -rf $DIR
# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
. .svn/deb-layout
mv $TAR $origDir
echo "moved $TAR to $origDir"
fi
|