4 # Author: Elan Ruusamäe <glen@pld-linux.org>
7 baseurl=http://modpagespeed.googlecode.com/svn
8 # leave empty to use latest tag, or "trunk" for trunk
10 spec=apache-mod_pagespeed.spec
22 if [ -z "$version" ]; then
23 echo "Looking for latest version..."
24 version=$(svn ls $baseurl/tags/ | sort -V | tail -n1)
28 if [ "$version" = "trunk" ]; then
30 svnurl=$baseurl/trunk/src
31 tarball=$pkg-$(date +%Y%m%d).tar.bz2
33 echo "Version: $version"
34 svnurl=$baseurl/tags/$version/src
35 tarball=$pkg-$version.tar.bz2
38 # gclient needs python 2.6
39 if python -c "import sys; sys.exit(sys.version[:3] > '2.6')"; then
40 echo >&2 "Need python >= 2.6 for gclient"
44 #wget -c https://chrome-browser.googlecode.com/svn-history/r37527/trunk/tools/depot_tools.tar.gz
45 wget -c http://distfiles.pld-linux.org/by-md5/5/6/56a3c406fcb645eaaa608a257f06a90d/depot_tools.tar.gz
46 test -d depot_tools || {
47 tar xzf depot_tools.tar.gz
58 ../depot_tools/gclient config $svnurl
59 ../depot_tools/gclient sync
61 # Populate the LASTCHANGE file template as we will not include VCS info in tarball
62 (cd src/build && svnversion > LASTCHANGE.in)
65 tar -cjf $tarball --exclude-vcs $pkg