File: orig-tar.sh

package info (click to toggle)
jhdf 2.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,312 kB
  • ctags: 6,966
  • sloc: java: 51,714; ansic: 17,051; sh: 1,963; makefile: 938
file content (20 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

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

# clean up the upstream tarball
tar xvf $3
mv hdf-java $DIR
tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR $3

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

exit 0