[Groonga-commit] groonga/groonga-normalizer-mysql [master] Extract version information to other file to share with CMakeLists.txt

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Mar 23 00:23:15 JST 2013


Kouhei Sutou	2013-03-23 00:23:15 +0900 (Sat, 23 Mar 2013)

  New Revision: 4e60ac847cdc06c4e311b8707837891b7930b211
  https://github.com/groonga/groonga-normalizer-mysql/commit/4e60ac847cdc06c4e311b8707837891b7930b211

  Message:
    Extract version information to other file to share with CMakeLists.txt

  Added files:
    version
  Modified files:
    Makefile.am
    configure.ac

  Modified: Makefile.am (+7 -0)
===================================================================
--- Makefile.am    2013-02-27 13:22:58 +0900 (4e33c7d)
+++ Makefile.am    2013-03-23 00:23:15 +0900 (2e0f1b2)
@@ -43,3 +43,10 @@ echo-ruby:
 
 tag:
 	cd $(top_srcdir) && git tag v$(VERSION) -a -m 'groonga-normalizer-mysql $(VERSION)!!!'
+
+update-version:
+	@if test -z "$(NEW_VERSION)"; then	\
+	  echo "\$$(NEW_VERSION) is missing";	\
+	  exit 1;				\
+	fi
+	@echo -n $(NEW_VERSION) > $(srcdir)/version

  Modified: configure.ac (+4 -1)
===================================================================
--- configure.ac    2013-02-27 13:22:58 +0900 (057662a)
+++ configure.ac    2013-03-23 00:23:15 +0900 (d5bb292)
@@ -15,7 +15,10 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
 AC_PREREQ(2.59)
-AC_INIT([groonga-normalizer-mysql], 1.0.1, [groonga �� razil.jp])
+m4_define([groonga_normalizer_mysql_version], m4_include(version))
+AC_INIT([groonga-normalizer-mysql],
+        groonga_normalizer_mysql_version,
+        [groonga �� razil.jp])
 
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_SRCDIR([normalizers/mysql.c])

  Added: version (+1 -0) 100644
===================================================================
--- /dev/null
+++ version    2013-03-23 00:23:15 +0900 (7f20734)
@@ -0,0 +1 @@
+1.0.1
\ No newline at end of file
-------------- next part --------------
HTML����������������������������...
Download 



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