File: orig-tar.sh

package info (click to toggle)
libjdic-java 0.9.5-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,024 kB
  • ctags: 2,427
  • sloc: java: 8,655; xml: 3,837; cpp: 3,437; ansic: 677; sh: 318; makefile: 214
file content (24 lines) | stat: -rwxr-xr-x 467 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=../libjdic-java_$1.orig.tar.gz
DIR=libjdic-java-$1.orig
ZIP=jdic-$1-src.zip
URL=https://jdic.dev.java.net/files/documents/880/98882/

wget $URL/$ZIP

# clean up the upstream tarball
unzip $ZIP
mv jdic-$1-src $DIR
GZIP=--best tar -c -z -f $TAR -X debian/orig.exclude $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