Skip to content

Commit

Permalink
Extract version information to other file to share with CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 22, 2013
1 parent dcbae0f commit 4e60ac8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile.am
Expand Up @@ -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
5 changes: 4 additions & 1 deletion configure.ac
Expand Up @@ -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])
Expand Down
1 change: 1 addition & 0 deletions version
@@ -0,0 +1 @@
1.0.1

0 comments on commit 4e60ac8

Please sign in to comment.