File: orig-tar.sh

package info (click to toggle)
libcobra-java 0.98.4-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,780 kB
  • sloc: java: 46,156; xml: 25; sh: 12; makefile: 6
file content (20 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

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

# clean up the upstream tarball
unzip $3
mv cobra-$2 $DIR
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*/doc/api/*' $DIR
rm -rf $3 $DIR

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

exit 0