File: orig-tar.sh

package info (click to toggle)
liblaf-widget-java 4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,244 kB
  • ctags: 1,839
  • sloc: java: 14,135; xml: 168; sh: 14; makefile: 11
file content (25 lines) | stat: -rwxr-xr-x 542 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
25
#!/bin/sh -e

# $1 = version
TAR=../liblaf-widget-java_$1.orig.tar.gz
DIR=liblaf-widget-java-$1.orig
ZIP=laf-widget-all.zip
# version 4.3
RELEASE_ID=135952

# download sources
wget https://laf-widget.dev.java.net/files/documents/5097/$RELEASE_ID/$ZIP

# clean up the upstream tarball
unzip -d $DIR $ZIP
GZIP=--best tar -c -z -f $TAR --exclude "$DIR/docs*" --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

exit 0