File: orig-tar.sh

package info (click to toggle)
libcommons-net-java 3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,052 kB
  • ctags: 4,206
  • sloc: java: 27,395; xml: 2,650; sh: 9; makefile: 7
file content (12 lines) | stat: -rwxr-xr-x 286 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

VERSION=$2
TAR=../libcommons-net-java_$VERSION.orig.tar.xz
DIR=commons-net-$VERSION
TAG=$(echo "NET_$VERSION" | sed -re's,\.,_,')

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