File: orig-tar.sh

package info (click to toggle)
libswingx-java 1%3A0.9.3-1
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 9,716 kB
  • ctags: 12,389
  • sloc: java: 83,508; xml: 11,846; sh: 11; makefile: 11
file content (20 lines) | stat: -rw-r--r-- 390 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>

TAR=../libswingx-java_$2.orig.tar.gz
DIR=swingx-$2-src

# clean up and repackage the upstream zip file
unzip $3
tar -c -z -f $TAR --exclude '*.jar' $DIR
rm -rf $DIR $3

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $TAR $origDir
  echo "moved $TAR to $origDir"
fi

exit 0