]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- percona patch builder
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 26 Aug 2009 09:56:17 +0000 (09:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    percona.sh -> 1.1

percona.sh [new file with mode: 0644]

diff --git a/percona.sh b/percona.sh
new file mode 100644 (file)
index 0000000..76028d7
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+# updates percona patches
+
+ver=5.0.84-b18
+patches=http://www.percona.com/mysql/$ver/patches
+series=$patches/series
+branch=MYSQL_5_0
+
+filter() {
+       grep -v 'mysqld_safe_syslog.patch'
+}
+
+> percona.spec
+i=100
+for patch in $(wget -q -O - $series | filter); do
+       file=mysql-$patch
+       wget -nv $patches/$patch -O $file
+
+       if [ -z "$(awk -vfile=$file -F/ '$2 == file{print}' CVS/Entries)" ]; then
+               cvs add $file
+               ${branch:+cvs up -r $branch $file}
+       fi
+
+       printf "Source%d:\t%s\n" $i $file >> percona.spec
+       i=$((i+1))
+done
This page took 0.036458 seconds and 4 git commands to generate.