File: orig-tar.sh

package info (click to toggle)
libskinlf-java 6.7-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,784 kB
  • ctags: 2,241
  • sloc: java: 16,664; xml: 353; makefile: 20; sh: 11
file content (19 lines) | stat: -rwxr-xr-x 394 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=skinlf-$2
TAR=../libskinlf-java_$2.orig.tar.gz

# clean up the upstream tarball
unzip $3
tar -c -z -f $TAR --exclude '*.jar' --exclude '*.dll' $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