File: orig-tar.sh

package info (click to toggle)
junit 3.8.2-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,704 kB
  • sloc: java: 1,762; sh: 43; makefile: 34; xml: 26
file content (14 lines) | stat: -rwxr-xr-x 295 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

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

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

exit 0