2 # updates percona patches
3 # http://www.percona.com/docs/wiki/release:start
5 version=release-5.1.53-11
6 bzr_branch=lp:percona-server/$version
10 # mysql_dump_ignore_ct.patch is broken, therefore we skip
11 grep -v 'mysql_dump_ignore_ct.patch' | \
12 grep -v 'percona-support.patch' | \
13 grep -v 'mysqld_safe_syslog.patch' | \
14 grep -v 'mysql-test.diff'
18 filterdiff -x '*/configure'
21 if [ -d $version ]; then
26 bzr branch $bzr_branch $version
32 for patch in $(cat $version/series | filter_names); do
34 cat $version/$patch | filter_files > $file
36 if [ -z "$(awk -vfile=$file -F/ '$2 == file{print}' CVS/Entries)" ]; then
38 ${branch:+cvs up -r $branch $file}
41 printf "Patch%d:\t%s\n" $i %{name}-$patch >> .percona.spec
42 printf "%%patch%d -p1\n" $i >> .patch.spec
46 # update PatchX section
48 /^# <percona patches/,/^# <\/percona>/ {
50 /^# <percona patches/ {
59 # update %patchX section
61 /^# <percona %patches/,/^# <\/percona>/ {
63 /^# <percona %patches/ {