msv/create-tarball.sh
Petr Šabata 0173e99aec RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/msv#70ffa2cb6c72930269f4dec609501879e7cf7246
2020-10-15 20:36:01 +02:00

23 lines
444 B
Bash
Executable File

#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: ./create-tarball VERSION"
exit 1
fi
VERSION=${1}
NAME="msv"
# Generate tarball from upstream source control:
svn co https://svn.java.net/svn/${NAME}~svn/tags/${NAME}-${VERSION}/ ${NAME}-${VERSION}
# Remove things that we don't need
(
cd ${NAME}-${VERSION}
rm -Rf www/ relames/ .svn/
rm -Rf schmit/ shared/ tahiti/
)
tar zcf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-${VERSION}