File: orig-tar.sh

package info (click to toggle)
jersey1 1.19.3-6%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,948 kB
  • sloc: java: 158,166; xml: 31,914; jsp: 330; python: 42; sh: 17; makefile: 8
file content (16 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e
#
# Removes unwanted content from the upstream sources.
# Called by uscan with '--upstream-version' <version> <file>
#

VERSION=$2
TAR=../jersey1_$VERSION.orig.tar.xz
DIR=jersey1-$VERSION

mkdir -p $DIR
tar -xf $3 --strip-components=1 -C $DIR
rm $3

XZ_OPT=--best tar -c -J -v -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR