File: orig-tar.sh

package info (click to toggle)
groovy2 2.2.2%2Bdfsg-3%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 23,924 kB
  • ctags: 23,595
  • sloc: java: 136,585; xml: 948; sh: 486; makefile: 67; ansic: 64
file content (18 lines) | stat: -rwxr-xr-x 464 bytes parent folder | download | duplicates (2)
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>
TAR=../groovy2_$2+dfsg.orig.tar.gz
DIR=groovy-$2

# clean up the upstream tarball
unzip $3
rm -rf $DIR/build
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.pdf' --exclude '*.class' $DIR --numeric-owner --owner 0 --group 0
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