File: orig-tar.sh

package info (click to toggle)
libcommons-lang3-java 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,324 kB
  • sloc: java: 52,835; xml: 4,427; sh: 7; makefile: 5
file content (10 lines) | stat: -rwxr-xr-x 331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -e

VERSION=$2
TAR=../libcommons-lang3-java_$VERSION.orig.tar.gz
DIR=libcommons-lang3-java-$VERSION
TAG=$(echo "LANG_$VERSION" | sed -re's/\./_/')

svn export http://svn.apache.org/repos/asf/commons/proper/lang/tags/${TAG} $DIR
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR ../$TAG