File: orig-tar.sh

package info (click to toggle)
libcommons-validator-java 1%3A1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,300 kB
  • sloc: java: 16,833; xml: 3,111; sh: 14; makefile: 4
file content (22 lines) | stat: -rwxr-xr-x 473 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
20
21
22
#!/bin/sh

#usage:
#./orig-tar.sh VALIDATOR_1_6_RC1
#./orig-tar.sh STRUTS_1_1_B1

set -e
SVN_URL=https://svn.apache.org/repos/asf/commons/_moved_to_git/validator
PACKAGE=$(dpkg-parsechangelog -S Source)
VERSION=$1
TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
DIR=${PACKAGE}_${VERSION}
TAG=$VERSION

echo "Available tags: "
svn ls $SVN_URL/tags

svn export $SVN_URL/tags/${TAG} $DIR
XZ_OPT=--best tar -c -J -f $TAR $DIR
rm -rf $DIR ../$TAG
echo Compressed file locates at $TAR