Commit 6fb7b7a09dfe348fefb16d163dc9d91f7503f1f6

Brendan Shanks 2022-04-26T15:29:35

autogen.sh: Fix building when freetype is itself a git submodule. There are situations where .git is not a directory, like when freetype is a submodule in another repository.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/autogen.sh b/autogen.sh
index 1545c63..b5fc1be 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -182,7 +182,7 @@ copy_submodule_files ()
   cp $DLG_SRC_DIR/* src/dlg
 }
 
-if test -d ".git"; then
+if test -e ".git"; then
   DLG_INC_DIR=subprojects/dlg/include/dlg
   DLG_SRC_DIR=subprojects/dlg/src/dlg