File: orig-tar.sh

package info (click to toggle)
antlr-maven-plugin 2.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 612 kB
  • sloc: java: 2,256; xml: 385; sh: 7; makefile: 2
file content (10 lines) | stat: -rwxr-xr-x 332 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -e

VERSION=$2
TAR=../antlr-maven-plugin_$VERSION.orig.tar.gz
DIR=antlr-maven-plugin-$VERSION
TAG=$(echo "antlr-maven-plugin-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')

svn export https://svn.codehaus.org/mojo/tags/${TAG}/ $DIR
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR ../$TAG