Blame SOURCES/create-tarball.sh

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