From dfa4111cec75c68a1e64ccba7d2eed586b151881 Mon Sep 17 00:00:00 2001 From: lxoliva Date: Sun, 28 Dec 2008 23:48:36 +0000 Subject: [PATCH] Use foo() notation rather than function foo, for portability. Reported by Daniel Clark. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@4655 559672b5-ba27-0410-b829-e8f1faed8b1b --- deblob-2.6.21 | 12 ++++++------ deblob-2.6.22 | 12 ++++++------ deblob-2.6.23 | 12 ++++++------ deblob-2.6.24 | 12 ++++++------ deblob-2.6.25 | 12 ++++++------ deblob-2.6.26 | 12 ++++++------ deblob-2.6.27 | 14 +++++++------- deblob-2.6.28 | 18 +++++++++--------- 8 files changed, 52 insertions(+), 52 deletions(-) diff --git a/deblob-2.6.21 b/deblob-2.6.21 index d4c785ca51a..d41d4872ec4 100755 --- a/deblob-2.6.21 +++ b/deblob-2.6.21 @@ -63,7 +63,7 @@ else have_check=: fi -function clean_file { +clean_file () { #$1 = filename if test ! -f $1; then die $1 does not exist, something is wrong @@ -71,7 +71,7 @@ function clean_file { rm -v $1 } -function check_changed { +check_changed () { if test ! -f $1; then die $1 does not exist, something is wrong elif cmp $1.deblob $1 > /dev/null; then @@ -80,7 +80,7 @@ function check_changed { mv $1.deblob $1 } -function clean_blob { +clean_blob () { #$1 = filename if $have_check; then if test ! -f $1; then @@ -97,7 +97,7 @@ function clean_blob { fi } -function clean_kconfig { +clean_kconfig () { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 sed "/^config \\($2\\)\$/{p;i\ @@ -106,7 +106,7 @@ d;}" $1 > $1.deblob check_changed $1 } -function clean_mk { +clean_mk () { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva # sed -i "/\\($1\\)/d" $2 @@ -118,7 +118,7 @@ function clean_mk { fi } -function clean_ifdef { +clean_ifdef () { #$1 = filename $2 = macro to -U echo unifdefing $1 with -U$2 unifdef -U$2 $1 > $1.deblob diff --git a/deblob-2.6.22 b/deblob-2.6.22 index 4f342187e6b..c0975744454 100755 --- a/deblob-2.6.22 +++ b/deblob-2.6.22 @@ -63,7 +63,7 @@ else have_check=: fi -function clean_file { +clean_file () { #$1 = filename if test ! -f $1; then die $1 does not exist, something is wrong @@ -71,7 +71,7 @@ function clean_file { rm -v $1 } -function check_changed { +check_changed () { if test ! -f $1; then die $1 does not exist, something is wrong elif cmp $1.deblob $1 > /dev/null; then @@ -80,7 +80,7 @@ function check_changed { mv $1.deblob $1 } -function clean_blob { +clean_blob () { #$1 = filename if $have_check; then if test ! -f $1; then @@ -97,7 +97,7 @@ function clean_blob { fi } -function clean_kconfig { +clean_kconfig () { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 sed "/^config \\($2\\)\$/{p;i\ @@ -106,7 +106,7 @@ d;}" $1 > $1.deblob check_changed $1 } -function clean_mk { +clean_mk () { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva # sed -i "/\\($1\\)/d" $2 @@ -118,7 +118,7 @@ function clean_mk { fi } -function clean_ifdef { +clean_ifdef () { #$1 = filename $2 = macro to -U echo unifdefing $1 with -U$2 unifdef -U$2 $1 > $1.deblob diff --git a/deblob-2.6.23 b/deblob-2.6.23 index c6d69d546b4..5fa3ba87757 100755 --- a/deblob-2.6.23 +++ b/deblob-2.6.23 @@ -63,7 +63,7 @@ else have_check=: fi -function clean_file { +clean_file () { #$1 = filename if test ! -f $1; then die $1 does not exist, something is wrong @@ -71,7 +71,7 @@ function clean_file { rm -v $1 } -function check_changed { +check_changed () { if test ! -f $1; then die $1 does not exist, something is wrong elif cmp $1.deblob $1 > /dev/null; then @@ -80,7 +80,7 @@ function check_changed { mv $1.deblob $1 } -function clean_blob { +clean_blob () { #$1 = filename if $have_check; then if test ! -f $1; then @@ -97,7 +97,7 @@ function clean_blob { fi } -function clean_kconfig { +clean_kconfig () { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 sed "/^config \\($2\\)\$/{p;i\ @@ -106,7 +106,7 @@ d;}" $1 > $1.deblob check_changed $1 } -function clean_mk { +clean_mk () { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva # sed -i "/\\($1\\)/d" $2 @@ -118,7 +118,7 @@ function clean_mk { fi } -function clean_ifdef { +clean_ifdef () { #$1 = filename $2 = macro to -U echo unifdefing $1 with -U$2 unifdef -U$2 $1 > $1.deblob diff --git a/deblob-2.6.24 b/deblob-2.6.24 index d5a8732632d..f9b0236c05a 100755 --- a/deblob-2.6.24 +++ b/deblob-2.6.24 @@ -63,7 +63,7 @@ else have_check=: fi -function clean_file { +clean_file () { #$1 = filename if test ! -f $1; then die $1 does not exist, something is wrong @@ -71,7 +71,7 @@ function clean_file { rm -v $1 } -function check_changed { +check_changed () { if test ! -f $1; then die $1 does not exist, something is wrong elif cmp $1.deblob $1 > /dev/null; then @@ -80,7 +80,7 @@ function check_changed { mv $1.deblob $1 } -function clean_blob { +clean_blob () { #$1 = filename if $have_check; then if test ! -f $1; then @@ -97,7 +97,7 @@ function clean_blob { fi } -function clean_kconfig { +clean_kconfig () { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 sed "/^config \\($2\\)\$/{p;i\ @@ -106,7 +106,7 @@ d;}" $1 > $1.deblob check_changed $1 } -function clean_mk { +clean_mk () { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva # sed -i "/\\($1\\)/d" $2 @@ -118,7 +118,7 @@ function clean_mk { fi } -function clean_ifdef { +clean_ifdef () { #$1 = filename $2 = macro to -U echo unifdefing $1 with -U$2 unifdef -U$2 $1 > $1.deblob diff --git a/deblob-2.6.25 b/deblob-2.6.25 index 2091069a823..85a84d78cfd 100755 --- a/deblob-2.6.25 +++ b/deblob-2.6.25 @@ -63,7 +63,7 @@ else have_check=: fi -function clean_file { +clean_file () { #$1 = filename if test ! -f $1; then die $1 does not exist, something is wrong @@ -71,7 +71,7 @@ function clean_file { rm -v $1 } -function check_changed { +check_changed () { if test ! -f $1; then die $1 does not exist, something is wrong elif cmp $1.deblob $1 > /dev/null; then @@ -80,7 +80,7 @@ function check_changed { mv $1.deblob $1 } -function clean_blob { +clean_blob () { #$1 = filename if $have_check; then if test ! -f $1; then @@ -97,7 +97,7 @@ function clean_blob { fi } -function clean_kconfig { +clean_kconfig () { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 sed "/^config \\($2\\)\$/{p;i\ @@ -106,7 +106,7 @@ d;}" $1 > $1.deblob check_changed $1 } -function clean_mk { +clean_mk () { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva # sed -i "/\\($1\\)/d" $2 @@ -118,7 +118,7 @@ function clean_mk { fi } -function clean_ifdef { +clean_ifdef () { #$1 = filename $2 = macro to -U echo unifdefing $1 with -U$2 unifdef -U$2 $1 > $1.deblob diff --git a/deblob-2.6.26 b/deblob-2.6.26 index 4254c693cc5..40e2f8c2750 100755 --- a/deblob-2.6.26 +++ b/deblob-2.6.26 @@ -63,7 +63,7 @@ else have_check=: fi -function clean_file { +clean_file () { #$1 = filename if test ! -f $1; then die $1 does not exist, something is wrong @@ -71,7 +71,7 @@ function clean_file { rm -v $1 } -function check_changed { +check_changed () { if test ! -f $1; then die $1 does not exist, something is wrong elif cmp $1.deblob $1 > /dev/null; then @@ -80,7 +80,7 @@ function check_changed { mv $1.deblob $1 } -function clean_blob { +clean_blob () { #$1 = filename if $have_check; then if test ! -f $1; then @@ -97,7 +97,7 @@ function clean_blob { fi } -function clean_kconfig { +clean_kconfig () { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 sed "/^config \\($2\\)\$/{p;i\ @@ -106,7 +106,7 @@ d;}" $1 > $1.deblob check_changed $1 } -function clean_mk { +clean_mk () { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva # sed -i "/\\($1\\)/d" $2 @@ -118,7 +118,7 @@ function clean_mk { fi } -function clean_ifdef { +clean_ifdef () { #$1 = filename $2 = macro to -U echo unifdefing $1 with -U$2 unifdef -U$2 $1 > $1.deblob diff --git a/deblob-2.6.27 b/deblob-2.6.27 index eba13661c2f..930ccb9c16b 100755 --- a/deblob-2.6.27 +++ b/deblob-2.6.27 @@ -59,7 +59,7 @@ else have_check=: fi -function clean_file { +clean_file () { #$1 = filename if test ! -f $1; then die $1 does not exist, something is wrong @@ -67,7 +67,7 @@ function clean_file { rm -v $1 } -function check_changed { +check_changed () { if test ! -f $1; then die $1 does not exist, something is wrong elif cmp $1.deblob $1 > /dev/null; then @@ -76,7 +76,7 @@ function check_changed { mv $1.deblob $1 } -function clean_blob { +clean_blob () { #$1 = filename if $have_check; then if test ! -f $1; then @@ -93,7 +93,7 @@ function clean_blob { fi } -function dummy_blob { +dummy_blob () { #$1 = filename if test -f $1; then echo $1 exists, something is wrong >&2 @@ -107,7 +107,7 @@ function dummy_blob { firmware/Makefile } -function clean_fw { +clean_fw () { #$1 = firmware text input, $2 = firmware output if test ! -f $1; then echo $1 does not exist, something is wrong >&2 @@ -120,7 +120,7 @@ function clean_fw { dummy_blob $2 } -function clean_kconfig { +clean_kconfig () { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 sed "/^config \\($2\\)\$/{p;i\ @@ -129,7 +129,7 @@ d;}" $1 > $1.deblob check_changed $1 } -function clean_mk { +clean_mk () { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva # sed -i "/\\($1\\)/d" $2 diff --git a/deblob-2.6.28 b/deblob-2.6.28 index 9d1484103be..5e1c709d180 100755 --- a/deblob-2.6.28 +++ b/deblob-2.6.28 @@ -44,7 +44,7 @@ # For each kver release, start extra with an empty string, then count # from 1 if changes are needed that require rebuilding the tarball. -kver=2.6.28 extra= +kver=2.6.28 extra=++ case $1 in --force) die () { echo ERROR: "$@": ignored >&2; }; shift;; @@ -59,7 +59,7 @@ else have_check=: fi -function clean_file { +clean_file () { #$1 = filename if test ! -f $1; then die $1 does not exist, something is wrong @@ -67,7 +67,7 @@ function clean_file { rm -v $1 } -function check_changed { +check_changed () { if test ! -f $1; then die $1 does not exist, something is wrong elif cmp $1.deblob $1 > /dev/null; then @@ -76,7 +76,7 @@ function check_changed { mv $1.deblob $1 } -function clean_blob { +clean_blob () { #$1 = filename if $have_check; then if test ! -f $1; then @@ -93,7 +93,7 @@ function clean_blob { fi } -function dummy_blob { +dummy_blob () { #$1 = filename if test -f $1; then echo $1 exists, something is wrong >&2 @@ -107,7 +107,7 @@ function dummy_blob { firmware/Makefile } -function clean_fw { +clean_fw () { #$1 = firmware text input, $2 = firmware output if test ! -f $1; then echo $1 does not exist, something is wrong >&2 @@ -120,7 +120,7 @@ function clean_fw { dummy_blob $2 } -function drop_fw_file { +drop_fw_file () { #$1 = firmware text input, $2 = firmware output if test ! -f $1; then echo $1 does not exist, something is wrong >&2 @@ -133,7 +133,7 @@ function drop_fw_file { dummy_blob $2 } -function clean_kconfig { +clean_kconfig () { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 sed "/^config \\($2\\)\$/{p;i\ @@ -142,7 +142,7 @@ d;}" $1 > $1.deblob check_changed $1 } -function clean_mk { +clean_mk () { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva # sed -i "/\\($1\\)/d" $2 -- 2.31.1