Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > ddb08f1c9be76689fee09265749eda56 > files > 6

itext-2.1.7-21.mga5.src.rpm

#!/bin/bash

#if [ $# -ne 1 ]; then
#    echo "Usage: ./create-sources VERSION"
#    exit 1
#fi

VERSION=${1}
TRVERSION=$( echo ${VERSION} | tr . _ )
NAME="itext"

svn export http://svn.code.sf.net/p/${NAME}/code/tags/iText_${TRVERSION} ${NAME}-temp/

find ./${NAME}-temp -name "*.jar" -delete
find ./${NAME}-temp -name "*.class" -delete

# Remove unused files
rm -Rf ./${NAME}-temp/src/jnlp
rm -Rf ./${NAME}-temp/.keywords
rm -Rf ./${NAME}-temp/lib
rm -Rf ./${NAME}-temp/test
rm -Rf ./${NAME}-temp/www

cd ./${NAME}-temp
tar cJf ../${NAME}-${VERSION}.tar.xz ./src