File: orig-tar.sh

package info (click to toggle)
libjboss-reflect-java 2.0.2.GA-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,960 kB
  • ctags: 3,292
  • sloc: java: 16,076; xml: 99; makefile: 18; sh: 12
file content (19 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (3)
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=../libjboss-reflect-java_$2.orig.tar.gz
DIR=libjboss-reflect-java-$2.orig
TAG=$(echo $2 | sed -e 's/~/./')

# clean up the upstream tarball
svn export http://anonsvn.jboss.org/repos/jbossas/projects/jboss-reflect/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