Blame SOURCES/create-tarball.sh

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