File: orig-tar.sh

package info (click to toggle)
maven-invoker 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 368 kB
  • ctags: 504
  • sloc: java: 2,921; xml: 271; sh: 9; makefile: 5
file content (14 lines) | stat: -rwxr-xr-x 317 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e


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

TAG=$(echo maven-invoker-${VERSION} | sed -e's,~,-,')

svn export http://svn.apache.org/repos/asf/maven/shared/tags/$TAG $DIR

XZ_OPT=--best tar -c -J -v -f $TAR $DIR
rm -rf $3 $DIR