File: orig-tar.sh

package info (click to toggle)
user-agent-utils 1.21-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 476 kB
  • sloc: java: 3,479; xml: 187; sh: 8; makefile: 4
file content (12 lines) | stat: -rwxr-xr-x 224 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

VERSION=$2
TAR=../user-agent-utils_$VERSION.orig.tar.xz
DIR=user-agent-utils-$VERSION

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

XZ_OPT=--best tar -cJvf $TAR --exclude 'javadoc/*' $DIR
rm -Rf $DIR