summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Shanks <bshanks@codeweavers.com>2022-04-26 15:29:35 -0700
committerBrendan Shanks <bshanks@codeweavers.com>2022-04-26 16:07:42 -0700
commit6fb7b7a09dfe348fefb16d163dc9d91f7503f1f6 (patch)
tree909c0d14f7b88060fb61124287c779d977df1229
parented4d0710f14878b51ce1885e0f3221e2d6d97a5a (diff)
downloadfreetype2-6fb7b7a09dfe348fefb16d163dc9d91f7503f1f6.tar.gz
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.
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 1545c63ad..b5fc1beb5 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