[Groonga-commit] groonga/groonga [master] add groonga_version to .pc.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 11月 8日 (火) 17:19:14 JST


Kouhei Sutou	2011-11-08 08:19:14 +0000 (Tue, 08 Nov 2011)

  New Revision: 591b22edb398a5e3b5b565842df3fae990baf9a9

  Log:
    add groonga_version to .pc.
    
    If groonga is released version, both Version and groonga_version are
    X.Y.Z. If groonga is *not* released version, Version is X.Y.Z but
    groonga_version is X.Y.Z-AA-BBBBBBBB.

  Modified files:
    configure.ac
    groonga.pc.in

  Modified: configure.ac (+5 -0)
===================================================================
--- configure.ac    2011-11-08 08:09:27 +0000 (a895c78)
+++ configure.ac    2011-11-08 08:19:14 +0000 (8461df8)
@@ -130,6 +130,11 @@ AC_SUBST(LT_VERSION_INFO)
 GRN_DLL_FILENAME="libgroonga-\$(LT_CURRENT).dll"
 AC_SUBST(GRN_DLL_FILENAME)
 
+if test "$srcdir/version.sh"; then
+  source "$srcdir/version.sh"
+  AC_SUBST(GROONGA_VERSION)
+fi
+
 AC_CONFIG_FILES([
   Makefile
   src/Makefile

  Modified: groonga.pc.in (+1 -0)
===================================================================
--- groonga.pc.in    2011-11-08 08:09:27 +0000 (65f82ab)
+++ groonga.pc.in    2011-11-08 08:19:14 +0000 (97a5be0)
@@ -5,6 +5,7 @@ libdir=@libdir@
 includedir=@includedir@
 groonga=${bindir}/groonga @ EXEEXT@
 groonga_suggest_create_dataset=${bindir}/groonga-suggest-create-dataset @ EXEEXT@
+groonga_version=@GROONGA_VERSION@
 
 Name: Groonga
 Description: An Embeddable Fulltext Search Engine




Groonga-commit メーリングリストの案内
Back to archive index