e5efc62bf0
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/jflex#a0dd8848319b6d014cd5324b3e9f7b31efc8240d
23 lines
429 B
Bash
Executable File
23 lines
429 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "Usage: ./create-tarball.sh VERSION"
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=${1}
|
|
NAME="jflex"
|
|
|
|
wget http://jflex.de/release/${NAME}-${VERSION}.tar.gz
|
|
tar xvf ${NAME}-${VERSION}.tar.gz
|
|
|
|
(
|
|
cd ${NAME}-${VERSION}
|
|
find . -name "*.jar" -delete
|
|
rm -Rf src/main/java/java_cup/ examples/
|
|
)
|
|
|
|
tar czvf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-${VERSION}
|
|
rm -Rf ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}
|
|
|