File: orig-tar.sh

package info (click to toggle)
jaxrs-api 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,380 kB
  • ctags: 1,412
  • sloc: java: 4,373; xml: 477; sh: 19; makefile: 12
file content (17 lines) | stat: -rwxr-xr-x 346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

PACKAGE=$(dpkg-parsechangelog -S Source)
VERSION=$2
DIR=${PACKAGE}-${VERSION}
TAR=../${PACKAGE}_${VERSION}.orig.tar.xz

rm $3
git clone --branch ${VERSION} git://java.net/jax-rs-spec~api $DIR

XZ_OPT=--best tar -c -v -J -f $TAR \
    --exclude '.git' \
    --exclude 'src/examples' \
    --exclude 'spec' \
    $DIR
rm -Rf $DIR