File: orig-tar.sh

package info (click to toggle)
bintray-client-java 0.8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 560 kB
  • sloc: java: 3,211; sh: 12; makefile: 5
file content (15 lines) | stat: -rwxr-xr-x 274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

VERSION=$2
DIR=bintray-client-java-${VERSION}
TAR=../bintray-client-java_${VERSION}.orig.tar.xz

tar -xf $3
rm $3
XZ_OPT=--best tar -c -v -J -f $TAR \
    --exclude 'gradlew*' \
    --exclude 'gradle/wrapper' \
    --exclude '*.jar' \
    $DIR
rm -Rf $DIR