File: orig-tar.sh

package info (click to toggle)
libsimple-validation-java 0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 644 kB
  • ctags: 650
  • sloc: java: 3,858; xml: 53; sh: 14; makefile: 7
file content (22 lines) | stat: -rwxr-xr-x 488 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
# $1 = version

TAR=../libsimple-validation-java_$1.orig.tar.gz
DIR=libsimple-validation-java-$1.orig
ZIP=src.zip
URL=http://kenai.com/projects/simplevalidation/downloads/download/

wget $URL/$ZIP

# clean up the upstream tarball
mkdir $DIR
(cd $DIR; unzip ../$ZIP)
GZIP=--best tar -c -z -f $TAR  --exclude '*.jar' $DIR
rm -rf $DIR $ZIP

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