File: get-orig-source

package info (click to toggle)
pylibtiff 0.3.0~svn78-3.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 560 kB
  • ctags: 2,766
  • sloc: python: 5,227; ansic: 1,011; sh: 16; makefile: 8
file content (27 lines) | stat: -rwxr-xr-x 567 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
#!/bin/sh
set -e

PACKAGE=pylibtiff

VERSION=${VERSION:-$2}
TARFILE=${TARFILE:-$3}

if [ -z ${VERSION}]; then
VERSION=`dpkg-parsechangelog | sed -n -e 's/^Version: \(.*\)-[^-]*$/\1/p'`
fi

REVISION=`echo $VERSION | sed -e 's/^.*svn//g'`


if [ -z ${TARFILE}]; then
TARFILE=${PACKAGE}_${VERSION}.orig.tar.gz
fi

FOLDER=${PACKAGE}-${VERSION}

svn export -q -r ${REVISION} http://pylibtiff.googlecode.com/svn/trunk/ ${FOLDER}
# remove convenient copy:
rm -rf ${FOLDER}/libtiff/bitarray-0.3.5-numpy/

GZIP="--best --no-name" tar czf ${TARFILE} ${FOLDER}
rm -rf ${FOLDER}