]> git.pld-linux.org Git - packages/apache-mod_pagespeed.git/blame - get-source.sh
- up to 0.9.17.7
[packages/apache-mod_pagespeed.git] / get-source.sh
CommitLineData
757b3ba5
ER
1#!/bin/sh
2# Usage:
3# ./get-source.sh
4# Author: Elan Ruusamäe <glen@pld-linux.org>
5
6pkg=modpagespeed
7baseurl=http://modpagespeed.googlecode.com/svn
8# leave empty to use trunk
9version=0.9.17.7
10spec=apache-mod_pagespeed.spec
11
12# abort on errors
13set -e
14
15# work in package dir
16dir=$(dirname "$0")
17cd "$dir"
18
19if [ -n "$version" ]; then
20 svnurl=$baseurl/tags/$version/src
21 tarball=$pkg-$version.tar.bz2
22else
23 svnurl=$baseurl/trunk/src
24 tarball=$pkg-$(date +%Y%m%d).tar.bz2
25fi
26
27wget -c http://src.chromium.org/svn/trunk/tools/depot_tools.tar.gz
28test -d depot_tools || tar xzf depot_tools.tar.gz
29
30install -d $pkg
31cd $pkg
32# force update
33rm -f .gclient
34
35../depot_tools/gclient config $svnurl
36../depot_tools/gclient sync
37
38# Populate the LASTCHANGE file template as we will not include VCS info in tarball
39(cd src/build && svnversion > LASTCHANGE.in)
40cd ..
41
42tar -cjf $tarball --exclude-vcs $pkg
43../md5 $spec
44../dropin $tarball &
This page took 0.073006 seconds and 4 git commands to generate.