Blame SOURCES/create-tarball.sh

4a442a
#!/bin/bash
4a442a
4a442a
if [ $# -ne 1 ]; then
4a442a
    echo "Usage: ./create-tarball.sh VERSION"
4a442a
    exit 1
4a442a
fi
4a442a
4a442a
VERSION=${1}
4a442a
NAME="cobertura"
4a442a
4a442a
wget http://downloads.sourceforge.net/${NAME}/${NAME}-${VERSION}-src.tar.bz2
4a442a
tar xvf ${NAME}-${VERSION}-src.tar.bz2
4a442a
rm ${NAME}-${VERSION}-src.tar.bz2
4a442a
# remove unneeded stuff
4a442a
find ./${NAME}-${VERSION}/lib/ -type f -delete
4a442a
find ./${NAME}-${VERSION}/antLibrary/common -type f -delete
4a442a
# this directory contains some files under non-free license (#850481)
4a442a
# these files are probably not copyrightable, but since we don't need them,
4a442a
# we can remove them
4a442a
find ./${NAME}-${VERSION}/etc/dtds/ -type f -delete
4a442a
4a442a
tar czvf ${NAME}-${VERSION}-clean.tar.gz ./${NAME}-${VERSION}
4a442a