File: orig-tar.sh

package info (click to toggle)
mina 1.1.7.dfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,540 kB
  • ctags: 4,121
  • sloc: java: 21,820; xml: 618; makefile: 42; sh: 11
file content (25 lines) | stat: -rwxr-xr-x 549 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
21
22
23
24
25
#!/bin/sh -e

# Make a DFSG version of upstream tarball
# - remove all packaged JAR
# - remove non-free VSD files (MS Visio)
# - remove generated Javadoc and Xref
# - remove LICENCE.*.txt from other projects

# $2 = version
# $3 = file
DIR=mina-$2.dfsg
TAR=mina_$2.dfsg.orig.tar.gz

# clean up the upstream tarball
tar zxf $3
mv mina-$2 $DIR
GZIP=--best tar czf $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR

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