File: orig-tar.sh

package info (click to toggle)
java-comment-preprocessor 5.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,308 kB
  • ctags: 2,052
  • sloc: java: 10,977; xml: 390; sh: 15; makefile: 5
file content (18 lines) | stat: -rwxr-xr-x 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

VERSION=$2
TAR=../java-comment-preprocessor_$VERSION.orig.tar.xz
DIR=$VERSION

mkdir $DIR
tar zxf $3 -C $DIR
rm -f $3
XZ_OPT=--best tar cJf $TAR \
	--exclude '*.jar' \
	--exclude '*.class' \
	--exclude 'texts' \
	--exclude 'catalog.xml' \
	--exclude 'src/assemble' \
	--exclude '.hg*' \
	$DIR
rm -rf $DIR