File: orig-tar.sh

package info (click to toggle)
liblaf-plugin-java 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 228 kB
  • ctags: 136
  • sloc: java: 1,190; xml: 242; sh: 13; makefile: 10
file content (23 lines) | stat: -rw-r--r-- 450 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
#!/bin/sh -e

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

# Download the sources
wget https://laf-plugin.dev.java.net/files/documents/4261/50297/$ZIP

# clean up the upstream tarball
unzip -d $DIR $ZIP
tar -c -z -f $TAR $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