File: orig-tar.sh

package info (click to toggle)
libcodemodel-java 2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 764 kB
  • sloc: java: 5,721; xml: 228; sh: 12; makefile: 7
file content (18 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

VERSION=$2
TAR=../libcodemodel-java_$VERSION.orig.tar.gz
DIR=libcodemodel-java-$VERSION.orig

# clean up the upstream tarball
svn export https://svn.java.net/svn/codemodel~svn/tags/codemodel-$VERSION/ \
    $DIR 
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR

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