File: orig-tar.sh

package info (click to toggle)
libjboss-managed-java 2.0.0~Beta15-1
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 1,452 kB
  • ctags: 2,079
  • sloc: java: 12,923; xml: 898; makefile: 18; sh: 12
file content (19 lines) | stat: -rw-r--r-- 454 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-managed-java_$2.orig.tar.gz
DIR=libjboss-managed-java-$2.orig
TAG=$(echo $2 | sed -e 's/~/./')

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