File: orig-tar.sh

package info (click to toggle)
jcharts 0.7.5-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,624 kB
  • sloc: java: 8,679; xml: 191; jsp: 190; makefile: 12; sh: 12
file content (20 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (4)
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>
DIR=jcharts-$2

# clean up the upstream tarball
unzip -d debian/ $3
mv debian/jCharts-$2 debian/$DIR
GZIP=--best tar czf ../jcharts_$2.orig.tar.gz -X debian/orig-tar.exclude -C debian $DIR
rm -rf debian/$DIR
rm -f $3

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

exit 0