Merge lp:~akopytov/percona-xtrabackup/links-to-percona-site-2.1 into lp:percona-xtrabackup/2.1

Proposed by Alexey Kopytov
Status: Merged
Merged at revision: 697
Proposed branch: lp:~akopytov/percona-xtrabackup/links-to-percona-site-2.1
Merge into: lp:percona-xtrabackup/2.1
Diff against target: 103 lines (+63/-0)
3 files modified
innobackupex.pl (+8/-0)
test/t/distribution_message.sh (+15/-0)
utils/build.sh (+40/-0)
To merge this branch: bzr merge lp:~akopytov/percona-xtrabackup/links-to-percona-site-2.1
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Stewart Smith Pending
Review via email: mp+195374@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file 'innobackupex' => 'innobackupex.pl' (properties changed: +x to -x)
--- innobackupex 2013-11-12 09:12:14 +0000
+++ innobackupex.pl 2013-11-15 12:17:46 +0000
@@ -1641,7 +1641,15 @@
1641# print_version subroutine prints program version and copyright.1641# print_version subroutine prints program version and copyright.
1642#1642#
1643sub print_version {1643sub print_version {
1644 my $distribution = "@XB_DISTRIBUTION@";
1645
1644 printf(STDERR $copyright_notice);1646 printf(STDERR $copyright_notice);
1647
1648 if ($distribution) {
1649 printf STDERR "Get the latest version of Percona XtraBackup, ".
1650 "documentation, and help resources:\n";
1651 printf STDERR "http://www.percona.com/xb/$distribution\n";
1652 }
1645}1653}
16461654
16471655
16481656
=== added file 'test/t/distribution_message.sh'
--- test/t/distribution_message.sh 1970-01-01 00:00:00 +0000
+++ test/t/distribution_message.sh 2013-11-15 12:17:46 +0000
@@ -0,0 +1,15 @@
1########################################################################
2# Tests for distribution specific messages in innobackupex
3########################################################################
4
5[ -z ${XB_DISTRIBUTION:-} ] && skip_test "Requires XB_DISTRIBUTION to be set"
6
7# Remove the argument when bug #1223716 is fixed
8innobackupex --version $topdir/backup
9
10link="http://www.percona.com/xb/$XB_DISTRIBUTION"
11
12if ! grep -q $link $OUTFILE
13then
14 die "Could not find '$link' in the innobackupex version message!"
15fi
016
=== modified file 'utils/build.sh'
--- utils/build.sh 2013-07-20 14:24:26 +0000
+++ utils/build.sh 2013-11-15 12:17:46 +0000
@@ -68,6 +68,24 @@
68fi68fi
6969
70xtrabackup_include_dir="$top_dir/src"70xtrabackup_include_dir="$top_dir/src"
71
72# Auto-detect distribution string if not overridden with the XB_DISTRIBUTION
73# environment variable
74XB_DISTRIBUTION=${XB_DISTRIBUTION:-}
75if [ -z "$XB_DISTRIBUTION" ]
76then
77 if which lsb_release >/dev/null 2>&1;
78 then
79 XB_DISTRIBUTION=`lsb_release -i | \
80sed -e 's/Distributor ID:[[:space:]]//' | \
81tr '[:upper:]' '[:lower:]'`
82 case $XB_DISTRIBUTION in
83 centos|redhat)
84 XB_DISTRIBUTION="epel";;
85 esac
86 fi
87fi
88
71CFLAGS="$CFLAGS -I$xtrabackup_include_dir"89CFLAGS="$CFLAGS -I$xtrabackup_include_dir"
72CXXFLAGS="$CXXFLAGS -I$xtrabackup_include_dir"90CXXFLAGS="$CXXFLAGS -I$xtrabackup_include_dir"
7391
@@ -97,6 +115,26 @@
97}115}
98116
99################################################################################117################################################################################
118# Process a file specified as the first argument, replace some certain variables
119# with their actual values and store the result in the file specified as the
120# second argument. The optional third argument may be used to set a specific
121# access mode on the resulting files (e.g. '+x")
122########################################################################
123function configure_file()
124{
125 local src=$1
126 local dst=$2
127
128 echo "Configuring $src to $dst"
129 sed 's|@XB_DISTRIBUTION@|'$XB_DISTRIBUTION'|g' $src > $dst
130
131 if [ $# -gt 2 ]
132 then
133 chmod $3 $dst
134 fi
135}
136
137################################################################################
100# Download files specified as arguments from $MASTER_SITE if $AUTO_DOWNLOAD is138# Download files specified as arguments from $MASTER_SITE if $AUTO_DOWNLOAD is
101# "yes". Otherwise print an error message and exit.139# "yes". Otherwise print an error message and exit.
102################################################################################140################################################################################
@@ -220,6 +258,8 @@
220258
221 innodb_dir=$server_dir/storage/$innodb_name259 innodb_dir=$server_dir/storage/$innodb_name
222260
261 configure_file innobackupex.pl innobackupex +x
262
223 echo "Downloading sources"263 echo "Downloading sources"
224 auto_download $server_tarball264 auto_download $server_tarball
225265

Subscribers

People subscribed via source and target branches

to all changes: