freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * autogen.sh: Fix for Solaris 10.


From: suzuki toshiya (@mpsuzuki)
Subject: [Git][freetype/freetype][master] * autogen.sh: Fix for Solaris 10.
Date: Mon, 14 Oct 2024 03:42:18 +0000

suzuki toshiya pushed to branch master at FreeType / FreeType

Commits:

  • 5f2abe76
    by Suzuki, Toshiya (鈴木俊哉) at 2024-10-14T10:26:17+09:00
    * 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.
    

1 changed file:

Changes:

  • autogen.sh
    ... ... @@ -99,7 +99,7 @@ check_tool_version ()
    99 99
       if test "$field"x = x; then
    
    100 100
         field=3  # default to 3 for all GNU autotools, after filtering enclosed string
    
    101 101
       fi
    
    102
    -  version=`$1 --version | head -1 | sed 's/([^)]*)/()/g' | cut -d ' ' -f $field`
    
    102
    +  version=`$1 --version | sed -n '1s/([^)]*)/()/gp' | cut -d ' ' -f $field`
    
    103 103
       version_check=`compare_to_minimum_version $version $4`
    
    104 104
       if test "$version_check"x = 0x; then
    
    105 105
         echo "ERROR: Your version of the \`$2' tool is too old."
    
    ... ... @@ -182,7 +182,7 @@ copy_submodule_files ()
    182 182
       cp $DLG_SRC_DIR/* src/dlg
    
    183 183
     }
    
    184 184
     
    
    185
    -if test -e ".git"; then
    
    185
    +if test -d ".git" -o -h ".git"; then
    
    186 186
       DLG_INC_DIR=subprojects/dlg/include/dlg
    
    187 187
       DLG_SRC_DIR=subprojects/dlg/src/dlg
    
    188 188
     
    


  • reply via email to

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