Changeset 252994 in webkit


Ignore:
Timestamp:
Dec 2, 2019 10:37:25 AM (4 years ago)
Author:
dino@apple.com
Message:

Clean up ANGLE header post-process script
https://bugs.webkit.org/show_bug.cgi?id=204711

Reviewed by Tim Horton.

Since sed on macOS requires the in-place argument to have a zero-length string
to avoid making backups, this script was attempting to pass . However, this was
being evaluated, creating a bunch of files with \'\' suffixes. Fix this by using
an array when expanding the arguments.

Also fix a typo where the character "3" was being printed.

Lastly, only print out the basename of the header file being converted.

  • adjust-angle-include-paths.sh:
Location:
trunk/Source/ThirdParty/ANGLE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/ANGLE/ChangeLog

    r252992 r252994  
     12019-12-02  Dean Jackson  <dino@apple.com>
     2
     3        Clean up ANGLE header post-process script
     4        https://bugs.webkit.org/show_bug.cgi?id=204711
     5
     6        Reviewed by Tim Horton.
     7
     8        Since `sed` on macOS requires the in-place argument to have a zero-length string
     9        to avoid making backups, this script was attempting to pass ''. However, this was
     10        being evaluated, creating a bunch of files with \'\' suffixes. Fix this by using
     11        an array when expanding the arguments.
     12
     13        Also fix a typo where the character "3" was being printed.
     14
     15        Lastly, only print out the basename of the header file being converted.
     16
     17        * adjust-angle-include-paths.sh:
     18
    1192019-11-30  Dean Jackson  <dino@apple.com>
    220
  • trunk/Source/ThirdParty/ANGLE/adjust-angle-include-paths.sh

    r252717 r252994  
    2222if [ "$DEPLOYMENT_LOCATION" == "YES" ] ; then
    2323    # Apple-internal build.
    24     output_dir=$DSTROOT/$PUBLIC_HEADERS_FOLDER_PATH
     24    output_dir=${DSTROOT}${PUBLIC_HEADERS_FOLDER_PATH}
    2525else
    2626    # External build.
    27     output_dir=$BUILT_PRODUCTS_DIR/$PUBLIC_HEADERS_FOLDER_PATH
     27    output_dir=${BUILT_PRODUCTS_DIR}${PUBLIC_HEADERS_FOLDER_PATH}
    2828fi
    2929
    3030if [ $(uname) == "Linux" ]; then
    31     inplace_opt="-i"
     31    inplace_opt=(-i)
    3232else
    33     inplace_opt="-i ''"
     33    inplace_opt=(-i "")
    3434fi
    3535
     
    4444s/^#include [<"]export.h[>"]/#include <ANGLE\/export.h>/
    4545s/^#include "\(eglext_angle\|gl2ext_angle\|ShaderVars\).h"/#include <ANGLE\/\1.h>/
    46 ' $inplace_opt $i
    47         echo Postprocessed ANGLE header3 $i
     46' "${inplace_opt[@]}" $i
     47        echo Postprocessed ANGLE header `basename $i`
    4848    fi
    4949done
Note: See TracChangeset for help on using the changeset viewer.