null+****@clear*****
null+****@clear*****
2012年 5月 9日 (水) 22:07:25 JST
IWAI, Masaharu 2012-05-09 22:07:25 +0900 (Wed, 09 May 2012) New Revision: bc4f7eb53820c427e907a13c7d2864a743983233 Merged 28b996c: Merge pull request #1 from iwaim/master Log: rpm: fix indent in post/postun scripts Modified files: packages/rpm/centos/mysql-mroonga.spec.in packages/rpm/fedora/mysql-mroonga.spec.in Modified: packages/rpm/centos/mysql-mroonga.spec.in (+20 -20) =================================================================== --- packages/rpm/centos/mysql-mroonga.spec.in 2012-05-09 22:02:45 +0900 (a23a0c0) +++ packages/rpm/centos/mysql-mroonga.spec.in 2012-05-09 22:07:25 +0900 (3433276) @@ -114,16 +114,16 @@ rm -rf $RPM_BUILD_ROOT %post if [ "$1" = 2 ] ; then -sql=" -DROP FUNCTION last_insert_grn_id; -UNINSTALL PLUGIN mroonga; -FLUSH TABLES; -" -command="/usr/bin/mysql -u root -e \"$sql\"" -echo $command -eval $command || \ - (echo "run the following command to unregister mroonga:"; \ - echo " $command") + sql=" + DROP FUNCTION last_insert_grn_id; + UNINSTALL PLUGIN mroonga; + FLUSH TABLES; + " + command="/usr/bin/mysql -u root -e \"$sql\"" + echo $command + eval $command || \ + (echo "run the following command to unregister mroonga:"; \ + echo " $command") fi sql=" INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; @@ -137,16 +137,16 @@ eval $command || \ %postun if [ "$1" = 0 ]; then -sql=" -DROP FUNCTION last_insert_grn_id; -UNINSTALL PLUGIN mroonga; -FLUSH TABLES; -" -command="/usr/bin/mysql -u root -e \"$sql\"" -echo $command -eval $command || \ - (echo "run the following command to unregister mroonga:"; \ - echo " $command") + sql=" + DROP FUNCTION last_insert_grn_id; + UNINSTALL PLUGIN mroonga; + FLUSH TABLES; + " + command="/usr/bin/mysql -u root -e \"$sql\"" + echo $command + eval $command || \ + (echo "run the following command to unregister mroonga:"; \ + echo " $command") fi %files Modified: packages/rpm/fedora/mysql-mroonga.spec.in (+20 -20) =================================================================== --- packages/rpm/fedora/mysql-mroonga.spec.in 2012-05-09 22:02:45 +0900 (cacd997) +++ packages/rpm/fedora/mysql-mroonga.spec.in 2012-05-09 22:07:25 +0900 (eb47899) @@ -67,16 +67,16 @@ rm -rf $RPM_BUILD_ROOT %post if [ "$1" = 2 ] ; then -sql=" -DROP FUNCTION last_insert_grn_id; -UNINSTALL PLUGIN mroonga; -FLUSH TABLES; -" -command="/usr/bin/mysql -u root -e \"$sql\"" -echo $command -eval $command || \ - (echo "run the following command to unregister mroonga:"; \ - echo " $command") + sql=" + DROP FUNCTION last_insert_grn_id; + UNINSTALL PLUGIN mroonga; + FLUSH TABLES; + " + command="/usr/bin/mysql -u root -e \"$sql\"" + echo $command + eval $command || \ + (echo "run the following command to unregister mroonga:"; \ + echo " $command") fi sql=" INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; @@ -91,16 +91,16 @@ eval $command || \ %postun if [ "$1" = 0 ]; then -sql=" -DROP FUNCTION last_insert_grn_id; -UNINSTALL PLUGIN mroonga; -FLUSH TABLES; -" -command="/usr/bin/mysql -u root -e \"$sql\"" -echo $command -eval $command || \ - (echo "run the following command to unregister mroonga:"; \ - echo " $command") + sql=" + DROP FUNCTION last_insert_grn_id; + UNINSTALL PLUGIN mroonga; + FLUSH TABLES; + " + command="/usr/bin/mysql -u root -e \"$sql\"" + echo $command + eval $command || \ + (echo "run the following command to unregister mroonga:"; \ + echo " $command") fi %files