File: orig-tar.sh

package info (click to toggle)
libxalan2-java 2.7.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 19,608 kB
  • sloc: java: 175,006; xml: 28,206; sh: 159; jsp: 43; makefile: 12; sql: 6
file content (12 lines) | stat: -rwxr-xr-x 267 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

VERSION=$2
TAR=../libxalan2-java_$VERSION.orig.tar.xz
DIR=libxalan2-java-$VERSION

mkdir $DIR
tar -xf $3 --strip-components=1 -C $DIR
rm $3
dos2unix $DIR/build.xml
XZ_OPT=--best tar -c -v -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -r $DIR