File: orig-tar.sh

package info (click to toggle)
libjhlabs-filters-java 2.0.235-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,132 kB
  • sloc: java: 16,740; xml: 17; sh: 11; makefile: 5
file content (18 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

# $1 = debian version
TAR=../libjhlabs-filters-java_$2.orig.tar.gz
DIR=jhlabs-filters-$2

# clean up the upstream tarball
mkdir $DIR
(cd $DIR; jar xf ../$3)
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' $DIR
rm -rf $3 $DIR

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