File: orig-tar.sh

package info (click to toggle)
libhibernate-commons-annotations-java 3.2.0.Final-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 456 kB
  • ctags: 627
  • sloc: java: 2,803; xml: 142; sh: 12; makefile: 5
file content (19 lines) | stat: -rwxr-xr-x 451 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

# $1 = version
TAR=../libhibernate-commons-annotations-java_$2.orig.tar.gz
DIR=hibernate-commons-annotations-$2
TAG="$2"

# clean up the upstream tarball
svn export http://anonsvn.jboss.org/repos/hibernate/commons-annotations/tags/$TAG $DIR
GZIP=--best tar -c -z -f $TAR $DIR
rm -rf $DIR
rm ../$TAG

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $TAR $origDir
  echo "moved $TAR to $origDir"
fi