[Kimchi-devel] [PATCH] [Kimchi 2/2] Update pkg-version script to work with submodules

Aline Manera alinefm at linux.vnet.ibm.com
Wed Feb 24 14:40:09 UTC 2016


While using git-submodules the directory .git will not exist. Instead of
that, a file .git will be present.
Update it to cover this scenario.

Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 build-aux/pkg-version | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-aux/pkg-version b/build-aux/pkg-version
index 749cf6c..3bbf505 100755
--- a/build-aux/pkg-version
+++ b/build-aux/pkg-version
@@ -41,7 +41,7 @@ AWK_RELEASE='
       else if (NF == 4) print $2, $3, "git" substr($4, 2)
     }'
 
-if [ ! -d .git ]; then
+if [ ! -e .git ]; then
     PKG_VERSION=`cat VERSION`
 else
     PKG_VERSION=`git describe --tags --match "[0-9]*" || cat VERSION`
-- 
2.5.0




More information about the Kimchi-devel mailing list