[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master d1d3dc0: autogen.sh: Make it work with old Solaris 10
From: |
Werner Lemberg |
Subject: |
[freetype2] master d1d3dc0: autogen.sh: Make it work with old Solaris 10 shell. |
Date: |
Fri, 3 Sep 2021 01:14:16 -0400 (EDT) |
branch: master
commit d1d3dc0235c1300c16cd2ad0438ea234f4090a42
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>
autogen.sh: Make it work with old Solaris 10 shell.
---
autogen.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index 6503975..ee92576 100755
--- a/autogen.sh
+++ b/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
@@ -182,7 +185,9 @@ copy_submodule_files ()
DLG_INC_DIR=subprojects/dlg/include/dlg
DLG_SRC_DIR=subprojects/dlg/src/dlg
-if ! test -d "$DLG_INC_DIR"; then
+if test -d "$DLG_INC_DIR"; then
+ :
+else
echo "Checking out submodule in \`subprojects/dlg':"
git submodule init
git submodule update
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master d1d3dc0: autogen.sh: Make it work with old Solaris 10 shell.,
Werner Lemberg <=