File: orig-tar.sh

package info (click to toggle)
maven-artifact-transfer 0.9.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 592 kB
  • sloc: java: 4,268; xml: 241; sh: 10; makefile: 4
file content (11 lines) | stat: -rwxr-xr-x 304 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e

PACKAGE=$(dpkg-parsechangelog -S Source)
VERSION=$2
DIR=${PACKAGE}-${VERSION}
TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
TAG=maven-artifact-transfer-$VERSION

svn export https://svn.apache.org/repos/asf/maven/shared/tags/$TAG/ $DIR
XZ_OPT=--best tar -c -J -f $TAR $DIR
rm -rf $DIR ../$TAG $3