File: orig-tar.sh

package info (click to toggle)
bouncycastle 1.60-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 64,568 kB
  • sloc: java: 636,276; sh: 1,944; xml: 1,599; makefile: 22
file content (22 lines) | stat: -rwxr-xr-x 493 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
21
22
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DEBIAN_VERSION=$(echo $2 | sed -e 's/^\(.\)/\1./')
DIR=bouncycastle-$DEBIAN_VERSION.orig
TAR=../bouncycastle_$DEBIAN_VERSION.orig.tar.xz

# clean up the upstream tarball
tar zxf $3
rm -f $3
mv crypto-$2 $DIR
XZ_OPT=--best tar cJf $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR

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

exit 0