File: orig-tar.sh

package info (click to toggle)
python-scipy 0.7.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 28,500 kB
  • ctags: 36,081
  • sloc: cpp: 216,880; fortran: 76,016; python: 71,576; ansic: 62,118; makefile: 243; sh: 17
file content (28 lines) | stat: -rwxr-xr-x 714 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
23
24
25
26
27
28
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DVER=$(dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | sed 's/\-[^-]*$//')
TAR=python-scipy_$DVER.orig.tar.gz
DIR=scipy-$2.orig

# extract upstream tar ball
tar xzf $3
mv scipy-$2 $DIR
rm $3

# add cython source files
(cd $DIR/scipy/spatial/;\
svn export http://svn.scipy.org/svn/scipy/tags/$2/scipy/spatial/ckdtree.pyx)
(cd $DIR/scipy/stats/;\
svn export http://svn.scipy.org/svn/scipy/tags/$2/scipy/stats/vonmises_cython.pyx)

# create tar ball
GZIP=--best tar czf $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