File: orig-tar.sh

package info (click to toggle)
libjna-java 4.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,156 kB
  • ctags: 20,506
  • sloc: java: 57,784; ansic: 4,670; xml: 2,440; makefile: 414; sh: 253
file content (23 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

VERSION=$2
TAR=../libjna-java_$VERSION.orig.tar.xz
DIR=jna-$VERSION

tar -xf $3
rm $3

XZ_OPT=--best tar -c -J -v -f $TAR \
    --exclude '*.jar' \
    --exclude 'native/libffi' \
    --exclude '.gitignore' \
    --exclude '.classpath' \
    --exclude '.project' \
    --exclude '.settings' \
    --exclude '.travis.yml' \
    --exclude 'www/*' \
    --exclude 'dist/*' \
    --exclude 'w32ce-test.lnk' \
    $DIR

rm -Rf $DIR