File: orig-tar.sh

package info (click to toggle)
libswingx-java 1%3A1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,780 kB
  • ctags: 14,819
  • sloc: java: 102,920; xml: 11,426; makefile: 17; sh: 11
file content (20 lines) | stat: -rwxr-xr-x 399 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 -X debian/orig-tar.exclude $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