~hrvojem/percona-xtrabackup/bug1065761-2.0

« back to all changes in this revision

Viewing changes to utils/prepare_tree_for_rpm.sh

  • Committer: Alexey Kopytov
  • Date: 2011-03-15 21:58:13 UTC
  • mto: This revision was merged to the branch mainline in revision 234.
  • Revision ID: akopytov@gmail.com-20110315215813-ukkcxzth1y8lqc7u
Port XtraBackup to Percona Server 5.5.9-beta20.1 codebase.

xtrabackup_55 is now based on Percona Server 5.5 rather than MySQL
5.5. Support for building against MySQL 5.5 and InnoDB plugin in MySQL
5.1 has been removed.

Therefore, the correspondence between build.sh targets and produced
binary is now as follows:

5.1         build against built-in InnoDB in MySQL 5.1
xtradb      build against Percona Server with XtraDB 5.1
xtradb55    build against Percona Server with XtradB 5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# helper script to prepare MySQL tree for xtrabackup build
2
 
# tested with mysql-5.0.75 / .77
3
 
# $1 - path to mysql .tar.gz
4
 
 
5
 
BV=0.8
6
 
 
7
 
PATHS=$1
8
 
DIRDST=`dirname $PATHS`
9
 
DRNAME=`basename $PATHS .tar.gz`
10
 
 
11
 
mkdir -p $DIRDST/xtrabackup-build
12
 
 
13
 
rm -fr $DIRDST/xtrabackup-build/$DRNAME 
14
 
 
15
 
tar xfz $PATHS -C $DIRDST/xtrabackup-build
16
 
cp ../fix_innodb_for_backup.patch $DIRDST/xtrabackup-build/$DRNAME
17
 
mkdir -p  $DIRDST/xtrabackup-build/$DRNAME/innobase/xtrabackup
18
 
cp ../* $DIRDST/xtrabackup-build/$DRNAME/innobase/xtrabackup 
19
 
pushd $DIRDST/xtrabackup-build/$DRNAME
20
 
patch -p1 < fix_innodb_for_backup.patch
21
 
 
22
 
cd ..
23
 
mv $DIRDST/xtrabackup-build/$DRNAME/ $DIRDST/xtrabackup-build/xtrabackup-$BV
24
 
 
25
 
tar cfz xtrabackup-$BV.tar.gz xtrabackup-$BV
26
 
cp xtrabackup-$BV.tar.gz /usr/src/redhat/SOURCES/
27
 
 
28
 
#./configure
29
 
#make -j8
30
 
#cd innobase/xtrabackup
31
 
#make