File: orig-tar.sh

package info (click to toggle)
libcommons-validator-java 1%3A1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,120 kB
  • ctags: 2,239
  • sloc: java: 15,239; xml: 3,063; sh: 15; makefile: 6
file content (13 lines) | stat: -rwxr-xr-x 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

PACKAGE=$(dpkg-parsechangelog -S Source)
VERSION=$2
TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
DIR=${PACKAGE}_${VERSION}
TAG=$(echo "VALIDATOR_$VERSION" | sed -re's,\.,_,g')

svn export http://svn.apache.org/repos/asf/commons/proper/validator/tags/${TAG} $DIR
XZ_OPT=--best tar -c -J -f $TAR $DIR
rm -rf $DIR ../$TAG