File: orig-tar.sh

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

# called by uscan with '--upstream-version' <version> <file>
DIR=btm-dist-$2
TAR=../libbtm-java_$2.orig.tar.gz

unzip $3

GZIP=--best tar czf $TAR --exclude='*.jar' --exclude='*.tlog' $DIR
rm -rf $DIR ../$2 $3

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