2019-04-12 17:02:53 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
echo "Usage: ./create-tarball VERSION"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
VERSION=${1}
|
|
|
|
NAME="kxml"
|
|
|
|
|
2022-04-07 19:27:44 +02:00
|
|
|
wget https://downloads.sourceforge.net/sourceforge/${NAME}/${NAME}2-src-${VERSION}.zip
|
2019-04-12 17:02:53 +02:00
|
|
|
unzip -d ${NAME}-${VERSION} ${NAME}2-src-${VERSION}.zip
|
|
|
|
rm ${NAME}2-src-${VERSION}.zip
|
|
|
|
|
|
|
|
( cd ${NAME}-${VERSION}
|
|
|
|
find . -name "*.jar" -delete
|
|
|
|
rm -Rf bin/ dist/* www/ samples_midp/ samples/ contrib/
|
|
|
|
)
|
|
|
|
|
2022-04-07 19:27:44 +02:00
|
|
|
tar cJvf ${NAME}-${VERSION}-clean.tar.xz ./${NAME}-${VERSION}
|
2019-04-12 17:02:53 +02:00
|
|
|
|