File: orig-tar.sh

package info (click to toggle)
libjamon-java 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 760 kB
  • ctags: 1,595
  • sloc: java: 6,469; xml: 27; sh: 10; makefile: 7
file content (18 lines) | stat: -rwxr-xr-x 348 bytes parent folder | download | duplicates (7)
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=../libjamon-java_$2.orig.tar.gz
DIR=jamonapi

unzip $3
tar -c -z -f $TAR --exclude '*.jar' --exclude '*.war' $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