Codebase list findbugs / debian/3.0.1-2 debian / orig-tar.sh
debian/3.0.1-2

Tree @debian/3.0.1-2 (Download .tar.gz)

orig-tar.sh @debian/3.0.1-2raw · history · blame

#!/bin/sh -e

VERSION=$2
DIR=findbugs-$VERSION
TAR=findbugs_$VERSION.orig.tar.xz

# clean up the upstream tarball
#unzip -x $3
tar xzvf $3
cd $DIR
#Remove shipped jar + doc without sources
rm -rf lib/*.jar lib/*.zip lib/*.txt
rm -rf src/doc/pressRelease.pdf doc/pressRelease.pdf build-lib/
cd ..
tar Jcvf ../$TAR $DIR
rm -rf $DIR $3

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

exit 0