Package list libslf4j-java / 87dd011 debian / orig-tar.sh
87dd011

Tree @87dd011 (Download .tar.gz)

orig-tar.sh @87dd011raw · history · blame

#!/bin/sh -e

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

mkdir $DIR
tar -xf $3 --strip-components=1 -C $DIR
rm $3
XZ_OPT=--best tar -c -v -J -f $TAR \
    --exclude '*.jar' \
    --exclude 'site' \
    $DIR
rm -Rf $DIR