File: orig-tar.sh

package info (click to toggle)
libsimple-validation-java 0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,744 kB
  • sloc: java: 4,472; xml: 3,296; sh: 16; makefile: 15
file content (24 lines) | stat: -rwxr-xr-x 676 bytes parent folder | download | duplicates (2)
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
# $1 = version

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

wget $URL/$ZIP

# clean up the upstream tarball
mkdir $DIR
(cd $DIR; unzip ../$ZIP)
(cd $DIR/ValidationAPI/; ant -Dplatforms.JDK_1.5.home=/usr/lib/jvm/default-java/ clean)
(cd $DIR/ValidationDemo/; ant -Dplatforms.JDK_1.5.home=/usr/lib/jvm/default-java/ clean)
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