File: orig-tar.sh

package info (click to toggle)
geronimo-j2ee-management-1.1-spec 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 228 kB
  • sloc: java: 214; xml: 40; sh: 8; makefile: 4
file content (15 lines) | stat: -rwxr-xr-x 520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e
#
# Removes unwanted content from the upstream sources.
# Called by uscan with '--upstream-version' <version> <file>
#

VERSION=$2
PACKAGE=$(dpkg-parsechangelog -S Source)
TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
DIR=${PACKAGE}-${VERSION}
TAG=$(echo "geronimo-j2ee-management_1.1_spec-$VERSION" | sed -re's/~(alpha|beta|rc)/-\1/')

svn export https://svn.apache.org/repos/asf/geronimo/specs/tags/${TAG}/ $DIR
XZ_OPT=--best tar -c -v -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR ../$TAG