File: orig-tar.sh

package info (click to toggle)
libhibernate3-java 3.6.10.Final-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 35,272 kB
  • sloc: java: 351,526; xml: 24,424; sh: 85; perl: 65; makefile: 24; sql: 6
file content (21 lines) | stat: -rwxr-xr-x 441 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

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

# clean up the upstream tarball
tar zxf $3
rm $3
mv hibernate-distribution* $DIR
GZIP=--best tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $TAR $origDir
  echo "moved $TAR to $origDir"
fi