~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to netware/BUILD/cron-build

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# debug
 
4
#set -x
 
5
 
 
6
# stop on errors
 
7
set -e
 
8
 
 
9
# repository direcotry
 
10
repo_dir=`pwd`
 
11
 
 
12
# show usage
 
13
show_usage()
 
14
{
 
15
        cat << EOF
 
16
 
 
17
usage: cron-patch
 
18
 
 
19
EOF
 
20
        exit 0;
 
21
}
 
22
 
 
23
echo "starting build..."
 
24
 
 
25
# check for bk and repo_dir
 
26
bk help > /dev/null
 
27
repo_dir=`bk root $repo_dir`
 
28
cd $repo_dir
 
29
 
 
30
# pull latest code
 
31
echo 'y' | bk pull
 
32
 
 
33
# determine version
 
34
version=`grep -e "AM_INIT_AUTOMAKE(mysql, .*)" < configure.in | sed -e "s/AM_INIT_AUTOMAKE(mysql, \(.*\))/\1/"`
 
35
echo "version: $version"
 
36
 
 
37
# latest revision
 
38
rev=`bk changes -e -n -d':REV:' | head -1`
 
39
echo "latest revision: $rev"
 
40
 
 
41
# run bootstrap
 
42
./netware/BUILD/nwbootstrap --revision=$rev --suffix=$rev --build=all
 
43
 
 
44
echo "done"
 
45
 
 
46