File: orig-tar.sh

package info (click to toggle)
geronimo-jpa-2.0-spec 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 784 kB
  • ctags: 1,098
  • sloc: java: 2,379; xml: 122; makefile: 18; sh: 12
file content (19 lines) | stat: -rwxr-xr-x 580 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
#!/bin/sh 

set -e

# called by uscan with '--upstream-version' <version> <file>
echo "version $2"
package=`dpkg-parsechangelog | sed -n 's/^Source: //p'`
version=$2
tarball=$3
TAR=${package}_${version}.orig.tar.gz
DIR=${package}-${version}.orig
upstream_package="$(echo $package | sed 's/-2\.0-spec/_2.0_spec/')"
REPO="http://svn.apache.org/repos/asf/geronimo/specs/tags/${upstream_package}-${version}/"

# setting timezone to avoid varying times
TZ=Etc/UTC LC_ALL=C svn export $REPO $DIR
GZIP=--best tar --numeric --group 0 --owner 0 -c -v -z -f $TAR $DIR

rm -rf $tarball $DIR