Codebase list findbugs / f8e9cf1 debian / orig-tar.sh
f8e9cf1

Tree @f8e9cf1 (Download .tar.gz)

orig-tar.sh @f8e9cf1raw · history · blame

#!/bin/sh -e

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

# clean up the upstream tarball
unzip -x $3
cd $DIR
#Remove shipped jar + doc without sources
rm -rf lib/ src/doc/pressRelease.pdf doc/pressRelease.pdf build-lib/
mkdir build/
# Upstream is using a patched version of bcel ...
# https://sourceforge.net/p/findbugs/support-requests/24/
patch -p1 < ../debian/patches/bcel-package.diff
ant patchbcel
rm build/bcel-5.2-src.zip
patch -R -p1 < ../debian/patches/bcel-package.diff
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