[Groonga-mysql-commit] mroonga/mroonga [master] apt: use apt-cache for collecting package specific version

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Nov 28 10:18:24 JST 2012


HAYASHI Kentaro	2012-11-28 10:18:24 +0900 (Wed, 28 Nov 2012)

  New Revision: 60ea4698b53c23ca4eb4b336745beac4b0215616
  https://github.com/mroonga/mroonga/commit/60ea4698b53c23ca4eb4b336745beac4b0215616

  Log:
    apt: use apt-cache for collecting package specific version
    
    It is needed to specify not only source version but also
    distribution specific one (such as 5.5.28-0ubuntu0.12.04.2) to
     force specific MySQL version

  Modified files:
    packages/apt/build-deb.sh

  Modified: packages/apt/build-deb.sh (+3 -10)
===================================================================
--- packages/apt/build-deb.sh    2012-11-27 18:44:15 +0900 (1d88d93)
+++ packages/apt/build-deb.sh    2012-11-28 10:18:24 +0900 (8fccb70)
@@ -121,16 +121,9 @@ tar xfz ${PACKAGE}_${VERSION}.orig.tar.gz
 cd ${PACKAGE}-${VERSION}/
 cp -rp /tmp/${PACKAGE}-debian debian
 # export DEB_BUILD_OPTIONS="noopt nostrip"
-case \$MYSQL_SOURCE_DIR in
-  *mysql-5.1*)
-  MYSQL_SOURCE_VERSION=\${MYSQL_SOURCE_DIR##./mysql-5.1-}
-  sed -i "s/@VERSION@/\$MYSQL_SOURCE_VERSION/" debian/control
-  ;;
-  *mysql-5.5*)
-  MYSQL_SOURCE_VERSION=\${MYSQL_SOURCE_DIR##./mysql-5.5-}
-  sed -i "s/@VERSION@/\$MYSQL_SOURCE_VERSION/" debian/control
-  ;;
-esac
+MYSQL_PACKAGE_INFO=\$(apt-cache show mysql-server | grep Version | sort | tail -1)
+MYSQL_PACKAGE_VERSION=\${MYSQL_PACKAGE_INFO##Version: }
+sed -i "s/@VERSION@/\$MYSQL_PACKAGE_VERSION/" debian/control
 debuild -us -uc
 EOF
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index