Blame SOURCES/generate_tarball.sh

8cfde1
#!/bin/bash
8cfde1
8cfde1
baseurl="https://svn.java.net/svn/jsp~svn/tags/"
8cfde1
pkgname="javax.servlet.jsp-api"
8cfde1
8cfde1
version=`grep Version: *spec | sed -e 's/Version:\s*\(.*\)/\1/'`
8cfde1
version="$version`sed -n 's/%global\s\+reltag\s\+/-/p' *.spec`"
8cfde1
echo $version
8cfde1
8cfde1
svn export "${baseurl}/${pkgname}-${version}"
8cfde1
tar cvJf ${pkgname}-${version}.tar.xz  ${pkgname}-${version}/