freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 5f2abe76f: * autogen.sh: Fix for Solaris 10.


From: Werner Lemberg
Subject: [freetype2] master 5f2abe76f: * autogen.sh: Fix for Solaris 10.
Date: Sun, 13 Oct 2024 23:42:25 -0400 (EDT)

branch: master
commit 5f2abe76fe7317ba3116505773d27a53141b0cca
Author: Suzuki, Toshiya (鈴木俊哉) <mpsuzuki@hiroshima-u.ac.jp>
Commit: Suzuki, Toshiya (鈴木俊哉) <mpsuzuki@hiroshima-u.ac.jp>

    * autogen.sh: Fix for Solaris 10.
    
    o Replace `test -e` by `test -d` (directory) and `-h`
      (symlink), because pre-POSIX /bin/sh of Solaris 10
      does not support `test -e`.
    o Replace the combination of `head` and `sed ...` by
      single sed command `sed -n 1...p`.  GNU libtoolize
      with Solaris 10 /bin/sh complains "Broken Pipe" for
      the closure of stdout by `head`.  Let `sed` receive
      all stdout and discard.
---
 autogen.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 7285a0155..a9f9575ff 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -99,7 +99,7 @@ check_tool_version ()
   if test "$field"x = x; then
     field=3  # default to 3 for all GNU autotools, after filtering enclosed 
string
   fi
-  version=`$1 --version | head -1 | sed 's/([^)]*)/()/g' | cut -d ' ' -f 
$field`
+  version=`$1 --version | sed -n '1s/([^)]*)/()/gp' | cut -d ' ' -f $field`
   version_check=`compare_to_minimum_version $version $4`
   if test "$version_check"x = 0x; then
     echo "ERROR: Your version of the \`$2' tool is too old."
@@ -182,7 +182,7 @@ copy_submodule_files ()
   cp $DLG_SRC_DIR/* src/dlg
 }
 
-if test -e ".git"; then
+if test -d ".git" -o -h ".git"; then
   DLG_INC_DIR=subprojects/dlg/include/dlg
   DLG_SRC_DIR=subprojects/dlg/src/dlg
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]