script checkconfig.sh does not appear to be a /bin/sh script
possible bashism in checkconfig.sh line 14 ('function' is useless):
function die() {
possible bashism in checkconfig.sh line 27 ('((' should be '$(('):
while (( "$#" )); do
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-#!/bin/bash
+#!/bin/sh
#
# This script checks for HAVE_ and ENABLE_ macros which are
#
-function die() {
+die() {
echo "error: $1"
exit 1
}
shift
-while (( "$#" )); do
+while [ "$#" -ne 0 ]; do
srcfile=$1
shift