Pratik Vyas | 8668081 | 2014-10-12 19:35:46 +0530 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # stolen from http://cgit.drupalcode.org/octopus/commit/?id=db4f837 |
| 4 | includedir=`mysql_config --variable=pkgincludedir` |
| 5 | thiscwd=`pwd` |
| 6 | _THIS_DB_VERSION=`mysql -V 2>&1 | tr -d "\n" | cut -d" " -f6 | awk '{ print $1}' | cut -d"-" -f1 | awk '{ print $1}' | sed "s/[\,']//g"` |
| 7 | if [ "$_THIS_DB_VERSION" = "5.5.40" ] && [ ! -e "$includedir-$_THIS_DB_VERSION-fixed.log" ] ; then |
| 8 | cd $includedir |
| 9 | sudo patch -p1 < $thiscwd/ci/my_config.h.patch &> /dev/null |
| 10 | sudo touch $includedir-$_THIS_DB_VERSION-fixed.log |
| 11 | fi |