File: orig-tar.sh

package info (click to toggle)
libjboss-profiler-java 1.0.CR4-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 376 kB
  • ctags: 488
  • sloc: cpp: 2,713; java: 1,394; xml: 169; sh: 158; makefile: 95
file content (18 lines) | stat: -rw-r--r-- 422 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=libjboss-profiler-java_$2.orig.tar.gz
DIR=libjboss-profiler-java-$2.orig

# clean up the upstream tarball
unzip $3
mv jboss-profiler-* $DIR
tar -c -z -f $TAR -X debian/orig-tar.exclude $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