From 2770763a3199a3effc3943df128b83a420eeb027 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 7 Jul 2019 17:22:15 +0200 Subject: [PATCH] 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/ --- build/genif.sh | 66 ++++++++++++++++++++++++++++++-------------------- configure.ac | 6 ++--- 2 files changed, 42 insertions(+), 30 deletions(-) diff --git a/build/genif.sh b/build/genif.sh index a6eb627b0c5ff..697bef95912e4 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