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

« back to all changes in this revision

Viewing changes to netware/BUILD/apply-patch

  • 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 directory
 
10
repo_dir=`pwd`
 
11
 
 
12
# show usage
 
13
show_usage()
 
14
{
 
15
        cat << EOF
 
16
 
 
17
usage: apply-patch
 
18
 
 
19
Imports netware/current-changes.patch so that current changes
 
20
for the platform are present on the local repository.
 
21
 
 
22
Use from the root directory of the repository, with BitKeeper
 
23
installed.
 
24
 
 
25
EOF
 
26
        exit 0;
 
27
}
 
28
 
 
29
if test $1 || test -z $BK_USER
 
30
then
 
31
        show_usage
 
32
fi
 
33
 
 
34
echo "starting patch..."
 
35
 
 
36
echo "user: $BK_USER"
 
37
 
 
38
# import patch
 
39
# Note: In future this should be changed to check whether
 
40
#       the repo already has this patch
 
41
bk import -tpatch $repo_dir/netware/current-changes.patch $repo_dir