2 # updates percona patches
3 # http://www.percona.com/docs/wiki/release:start
6 patches=http://www.percona.com/mysql/$ver/patches
11 grep -v 'mysqld_safe_syslog.patch'
15 filterdiff -x '*/configure'
21 for patch in $(wget -q -O - $series | filter_names); do
23 wget -nv $patches/$patch -O - | filter_files > $file
25 if [ -z "$(awk -vfile=$file -F/ '$2 == file{print}' CVS/Entries)" ]; then
27 ${branch:+cvs up -r $branch $file}
30 printf "Patch%d:\t%s\n" $i %{name}-$patch >> .percona.spec
31 printf "%%patch%d -p1\n" $i >> .patch.spec
35 # update PatchX section
37 /^# <percona patches/,/^# <\/percona>/ {
39 /^# <percona patches/ {
48 # update %patchX section
50 /^# <percona %patches/,/^# <\/percona>/ {
52 /^# <percona %patches/ {