File: orig-tar.sh

package info (click to toggle)
enthought-traits-ui 2.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 15,204 kB
  • ctags: 9,623
  • sloc: python: 45,547; sh: 32; makefile: 19
file content (43 lines) | stat: -rw-r--r-- 971 bytes parent folder | download
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