File: orig-tar.sh

package info (click to toggle)
libkjdsp-java 1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 80 kB
  • ctags: 134
  • sloc: java: 618; xml: 21; sh: 14; makefile: 11
file content (24 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
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

# called by uscan with '--upstream-version' <version> <file>
ZIP=kj_dsp_src.zip
TAR=../libkjdsp-java_$1.orig.tar.gz
DIR=libkjdsp-java-$1

# Download sources
wget http://libkj-java.googlecode.com/files/$ZIP

# clean up the upstream tarball
unzip $ZIP
mv kj $DIR
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