File: orig-tar.sh

package info (click to toggle)
libjfreechart-java 1.0.13-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,636 kB
  • sloc: java: 143,062; xml: 504; makefile: 26; sh: 12
file content (21 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=libjfreechart-java-$2.orig

echo "Cleaning up the original tarball"

# clean up the upstream tarball
tar zxf $3
mv jfreechart-$2 $DIR
GZIP=--best tar czf $3 --exclude '*jar' --exclude 'lib/*' $DIR
rm -rf $DIR

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

exit 0