summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype2/freetype-src/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/autogen.sh')
-rwxr-xr-xBuild/source/libs/freetype2/freetype-src/autogen.sh25
1 files changed, 16 insertions, 9 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/autogen.sh b/Build/source/libs/freetype2/freetype-src/autogen.sh
index 6503975d187..8cca7c84a71 100755
--- a/Build/source/libs/freetype2/freetype-src/autogen.sh
+++ b/Build/source/libs/freetype2/freetype-src/autogen.sh
@@ -110,7 +110,10 @@ check_tool_version ()
fi
}
-if test ! -f ./builds/unix/configure.raw; then
+# Solaris 10's shell doesn't like the `!` operator to negate the exit status.
+if test -f ./builds/unix/configure.raw; then
+ :
+else
echo "You must be in the same directory as \`autogen.sh'."
echo "Bootstrapping doesn't work if srcdir != builddir."
exit 1
@@ -179,15 +182,19 @@ copy_submodule_files ()
cp $DLG_SRC_DIR/* src/dlg
}
-DLG_INC_DIR=subprojects/dlg/include/dlg
-DLG_SRC_DIR=subprojects/dlg/src/dlg
+if test -d ".git"; then
+ DLG_INC_DIR=subprojects/dlg/include/dlg
+ DLG_SRC_DIR=subprojects/dlg/src/dlg
-if ! test -d "$DLG_INC_DIR"; then
- echo "Checking out submodule in \`subprojects/dlg':"
- git submodule init
- git submodule update
-fi
+ if test -d "$DLG_INC_DIR"; then
+ :
+ else
+ echo "Checking out submodule in \`subprojects/dlg':"
+ git submodule init
+ git submodule update
+ fi
-copy_submodule_files
+ copy_submodule_files
+fi
# EOF