File: orig-tar.sh

package info (click to toggle)
python-envisageplugins 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,600 kB
  • sloc: python: 6,968; sh: 11; makefile: 8; lisp: 1
file content (22 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=python-envisageplugins-$2.orig

# cleanup the upstream sources
tar zxf $3
mv EnvisagePlugins-$2 $DIR

# remove freetype2 source from enthought.kiva
(cd $DIR; find -iname splash.jpg -delete)

# 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