Blame SOURCES/create-tarball.sh

d3f190
#!/bin/bash
d3f190
d3f190
if [ $# -ne 1 ]; then
d3f190
    echo "Usage: ./create-tarball.sh VERSION"
d3f190
    exit 1
d3f190
fi
d3f190
d3f190
VERSION=${1}
d3f190
NAME="fop"
d3f190
d3f190
wget http://archive.apache.org/dist/xmlgraphics/fop/source/${NAME}-${VERSION}-src.tar.gz
d3f190
tar xvf ${NAME}-${VERSION}-src.tar.gz
d3f190
d3f190
(
d3f190
  cd ${NAME}-${VERSION}
d3f190
  # non-free color profile
d3f190
  find src/java/org/apache/fop/pdf/ -name "*.icm*" -delete
d3f190
  find ./ -name "*.jar" -delete
d3f190
  find ./ -name "*.pdf" -delete
d3f190
  # serialized objects
d3f190
  find ./${NAME}-${VERSION}/ -name "*.ser" -delete
d3f190
  # examples, tests, ...
d3f190
  rm -Rf lib/ examples/ test/ hyph/
d3f190
  rm -Rf src/documentation/
d3f190
  mkdir -p lib/build/
d3f190
)
d3f190
d3f190
tar czvf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-${VERSION}
d3f190
rm -Rf ${NAME}-${VERSION}.tar.gz
d3f190