Package list libslf4j-java / af0785e debian / orig-tar.sh
af0785e

Tree @af0785e (Download .tar.gz)

orig-tar.sh @af0785eraw · history · blame

#!/bin/sh -e

# $2 = version
# $3 = file
DIR=libslf4j-java-$2.orig
TAR=../libslf4j-java_$2.orig.tar.xz

# clean up the upstream tarball
tar xzf $3
rm $3
mv slf4j-$2 $DIR
XZ_OPT=--best tar cJf $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $3 $origDir
  echo "moved $3 to $origDir"
fi