File: orig-tar.sh

package info (click to toggle)
python-enable 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,220 kB
  • sloc: cpp: 57,417; python: 28,437; makefile: 314; sh: 43
file content (25 lines) | stat: -rwxr-xr-x 519 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
#!/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