File: orig-tar.sh

package info (click to toggle)
libstax-java 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 1,656 kB
  • ctags: 2,739
  • sloc: java: 21,270; xml: 260; makefile: 34; sh: 16
file content (24 lines) | stat: -rwxr-xr-x 449 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
23
24
#!/bin/sh -e

# $2 = version
VERSION=$2
ZIP=$3
TAR=../libstax-java_$VERSION.orig.tar.gz
DIR=stax-$VERSION.orig

echo $VERSION
echo $ZIP
echo $TAR

# clean up the upstream tarball
unzip $ZIP -d $DIR
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*/src/javax/xml/namespace/*' $DIR
rm -rf $DIR
rm $ZIP

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