File: orig-tar.sh

package info (click to toggle)
libjboss-integration-java 5.0.0~Beta5-1
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 364 kB
  • ctags: 237
  • sloc: java: 1,114; xml: 896; sh: 12; makefile: 11
file content (20 lines) | stat: -rw-r--r-- 464 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
20
#!/bin/sh -e

# $1 = version
TAR=../libjboss-integration-java_$2.orig.tar.gz
DIR=libjboss-integration-java-$2.orig
TAG=$(echo $2 | sed -e 's/~/./')

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