Sophie

Sophie

distrib > Mageia > cauldron > i586 > media > core-release-src > by-pkgid > fe0abea35e12b54e754b28b328c24d14 > files > 5

je-6.3.8-5.mga7.src.rpm

#!/bin/bash

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

VERSION=${1}
NAME="je"

wget http://download.oracle.com/berkeley-db/${NAME}-${VERSION}.tar.gz
tar -xf ${NAME}-${VERSION}.tar.gz
rm ${NAME}-${VERSION}.tar.gz
find ./${NAME}-${VERSION} -name "*.jar" -delete
find ./${NAME}-${VERSION} -name "*.class" -delete
# Remove unused files
rm -Rf ./${NAME}-${VERSION}/docs/*
rm -Rf ./${NAME}-${VERSION}/lib
tar cJf ${NAME}-${VERSION}-clean.tar.xz ./${NAME}-${VERSION}