[Groonga-commit] groonga/groonga [master] Support grn_get_version() with "git clone --depth 1" repository

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Apr 14 11:21:19 JST 2013


Kouhei Sutou	2013-04-14 11:21:19 +0900 (Sun, 14 Apr 2013)

  New Revision: f85d39d6866d031932f998f57adac60886aace3c
  https://github.com/groonga/groonga/commit/f85d39d6866d031932f998f57adac60886aace3c

  Message:
    Support grn_get_version() with "git clone --depth 1" repository

  Modified files:
    version-gen.sh

  Modified: version-gen.sh (+4 -0)
===================================================================
--- version-gen.sh    2013-04-10 18:13:27 +0900 (58725bb)
+++ version-gen.sh    2013-04-14 11:21:19 +0900 (c56cb9e)
@@ -14,6 +14,10 @@ then
 elif test -d .git -o -f .git
 then
     GRN_VN=`git describe --abbrev=7 HEAD 2>/dev/null`
+    if [ $? -ne 0 ]
+    then
+	GRN_VN=`cat base_version`
+    fi
 fi
 
 GRN_VN=`expr "$GRN_VN" : v*'\(.*\)'`
-------------- next part --------------
HTML����������������������������...
Download 



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