File: orig-tar.sh

package info (click to toggle)
python-scipy 0.10.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 42,232 kB
  • sloc: cpp: 224,773; ansic: 103,496; python: 85,210; fortran: 79,130; makefile: 272; sh: 43
file content (55 lines) | stat: -rwxr-xr-x 1,466 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
44
45
46
47
48
49
50
51
52
53
54
55
#!/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
SRC=https://github.com/scipy/scipy/raw/v$2

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

# add cython source files, should be unecessary for > 0.11 see ticket 1780
for f in \
scipy/sparse/sparsetools/numpy.i \
scipy/sparse/sparsetools/sparsetools.i \
scipy/sparse/sparsetools/dia.i \
scipy/sparse/sparsetools/csr.i \
scipy/sparse/sparsetools/csgraph.i \
scipy/sparse/sparsetools/csc.i \
scipy/sparse/sparsetools/coo.i \
scipy/sparse/sparsetools/bsr.i \
scipy/cluster/_vq_rewrite.pyx \
scipy/interpolate/interpnd.pyx \
scipy/io/matlab/mio5_utils.pyx \
scipy/io/matlab/mio_utils.pyx \
scipy/io/matlab/pyalloc.pxd \
scipy/io/matlab/streams.pxd \
scipy/io/matlab/streams.pyx \
scipy/signal/spectral.pyx \
scipy/spatial/ckdtree.pyx \
scipy/spatial/qhull.pxd \
scipy/spatial/qhull.pyx \
scipy/special/lambertw.pyx \
scipy/special/orthogonal_eval.pyx \
scipy/stats/vonmises_cython.pyx; do
echo $f
(cd $DIR/$(dirname $f);\
wget $SRC/$f)
done
# also needs a patch to the generator
(cd $DIR/scipy/interpolate/;
mv interpnd.pyx interpnd.pyx.in)

# 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