File: orig-tar.sh

package info (click to toggle)
libj2ssh-java 0.2.9-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,788 kB
  • sloc: java: 39,998; xml: 197; sh: 13; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

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

# clean up the upstream tarball
mv $TAR $3
tar zxf $3
mv j2ssh $DIR
GZIP=--best tar czf $3 --exclude 'lib/*' $DIR
rm -rf $TAR $DIR

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

exit 0