From: Peter Kokot Date: Mon, 8 Jul 2019 12:58:26 +0000 (+0200) Subject: Refactor genif.sh X-Git-Tag: php-7.4.0alpha3~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=900de30b0f40a254e19082d3e2b696d58e338b43;p=php Refactor genif.sh Changes: - Coding style fixes - ${1+"$@"} replaced with "$@" [1] - EXTRA_MODULE_PTRS variable is not used anymore - awk tool defined via environment variable - srcdir determined automatically from the genif.sh location [1] https://www.in-ulm.de/~mascheck/various/bourne_args/ Closes GH-4372 --- diff --git a/build/genif.sh b/build/genif.sh index a6eb627b0c..697bef9591 100755 --- a/build/genif.sh +++ b/build/genif.sh @@ -1,39 +1,53 @@ -#! /bin/sh - -# replacement for genif.pl - -infile=$1 -shift -srcdir=$1 -shift -extra_module_ptrs=$1 -shift -awk=$1 +#!/bin/sh +# +# Generate internal functions file content based on the provided extensions. +# +# SYNOPSIS: +# genif.sh