File: orig-tar.sh

package info (click to toggle)
openjpa 2.4.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 42,424 kB
  • sloc: java: 428,979; xml: 61,117; sql: 1,610; jsp: 691; python: 160; sh: 11; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

# called by uscan with '--upstream-version' <version> <file>
PACKAGE=`dpkg-parsechangelog --show-field Source`
VERSION=$2
TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
DIR=${PACKAGE}-${VERSION}.orig

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

XZ_OPT=--best tar --numeric --group 0 --owner 0 -c -v -J -f $TAR \
    --anchored -X debian/orig-tar.excludes $DIR

rm -rf $DIR