File: orig-tar.sh

package info (click to toggle)
libcommons-collections4-java 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,452 kB
  • ctags: 9,392
  • sloc: java: 60,733; xml: 3,466; sh: 10; makefile: 7
file content (13 lines) | stat: -rwxr-xr-x 337 bytes parent folder | download
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 "COLLECTIONS_$VERSION" | sed -re's,\.,_,')

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