File: orig-tar.sh

package info (click to toggle)
geronimo-validation-1.1-spec 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 396 kB
  • sloc: java: 1,103; xml: 90; sh: 12; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 522 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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.xz
DIR=${package}-${version}.orig
upstream_package="$(echo $package | sed 's/-1\.1-spec/_1.1_spec/')"
REPO="http://svn.apache.org/repos/asf/geronimo/specs/tags/${upstream_package}-${version}/"

svn export $REPO $DIR
XZ_OPT=--best tar --numeric --group 0 --owner 0 -c -v -J -f $TAR $DIR

rm -rf $tarball $DIR