File: orig-tar.sh

package info (click to toggle)
liboro-java 2.0.8a-12
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,460 kB
  • ctags: 979
  • sloc: java: 6,847; xml: 207; makefile: 17; sh: 9
file content (15 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=liboro-java-$2.orig
TAR=../liboro-java_$2.orig.tar.gz
VERSION=$(echo $2 | sed 's/a$//')

# clean up the upstream tarball
tar xvfz $3
rm -f $3
mv jakarta-oro-$VERSION $DIR
GZIP=--best tar czf $TAR --exclude docs/api --exclude *.jar --exclude *.class $DIR
rm -rf $DIR

exit 0