File: orig-tar.sh

package info (click to toggle)
groovy 1.8.6-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 22,520 kB
  • sloc: java: 144,029; xml: 2,781; sh: 262; ansic: 64; makefile: 31
file content (17 lines) | stat: -rwxr-xr-x 404 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e

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

# clean up the upstream tarball
unzip $3
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.pdf' --exclude '*.class' $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