]> git.pld-linux.org Git - packages/mysql.git/blob - percona.sh
- percona patch builder
[packages/mysql.git] / percona.sh
1 #!/bin/sh
2 # updates percona patches
3
4 ver=5.0.84-b18
5 patches=http://www.percona.com/mysql/$ver/patches
6 series=$patches/series
7 branch=MYSQL_5_0
8
9 filter() {
10         grep -v 'mysqld_safe_syslog.patch'
11 }
12
13 > percona.spec
14 i=100
15 for patch in $(wget -q -O - $series | filter); do
16         file=mysql-$patch
17         wget -nv $patches/$patch -O $file
18
19         if [ -z "$(awk -vfile=$file -F/ '$2 == file{print}' CVS/Entries)" ]; then
20                 cvs add $file
21                 ${branch:+cvs up -r $branch $file}
22         fi
23
24         printf "Source%d:\t%s\n" $i $file >> percona.spec
25         i=$((i+1))
26 done
This page took 0.024783 seconds and 4 git commands to generate.