Modify autogen.sh for git workflow.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 13 Dec 2016 00:50:25 +0000 (09:50 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 13 Dec 2016 00:50:25 +0000 (09:50 +0900)
* autogen.sh: Fix to check .git directory.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
autogen.sh

index 31cfeeb..0943d5c 100755 (executable)
@@ -214,7 +214,7 @@ if [ "$myhost" = "find-version" ]; then
     esac
 
     beta=no
-    if [ -d .git ]; then
+    if [ -e .git ]; then
       ingit=yes
       tmp=$(git describe --match "${matchstr1}" --long 2>/dev/null)
       if [ -n "$tmp" ]; then