File: orig-tar.sh

package info (click to toggle)
libcommons-validator-java 1%3A1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 2,148 kB
  • sloc: java: 15,930; xml: 2,755; sh: 10; 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