2013-06-10 08:03:04 +00:00
|
|
|
#!/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}
|
2013-08-06 08:23:27 +00:00
|
|
|
rm -Rf www/ relames/ .svn/
|
2013-06-10 08:03:04 +00:00
|
|
|
rm -Rf schmit/ shared/ tahiti/
|
|
|
|
)
|
|
|
|
|
|
|
|
tar zcf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-${VERSION}
|
|
|
|
|