diff options
| author | Alexandre Oliva <lxoliva@fsfla.org> | 2008-12-25 23:37:32 +0000 |
|---|---|---|
| committer | Alexandre Oliva <lxoliva@fsfla.org> | 2008-12-25 23:37:32 +0000 |
| commit | 70aa5b692991efda3ff2fe3eb8a9b1514257d828 (patch) | |
| tree | 044a40755894be185275ad2a7de8b0d1979c4043 /scripts | |
| parent | a6ba8309ccc09e8d2c73d379218d07ba8044271a (diff) | |
| download | linux-libre-raptor-70aa5b692991efda3ff2fe3eb8a9b1514257d828.tar.gz linux-libre-raptor-70aa5b692991efda3ff2fe3eb8a9b1514257d828.zip | |
Get --force to avoid some more errors in already clean-up trees.
Suggested by Robert Millan.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/deblob-2.6.21 | 7 | ||||
| -rwxr-xr-x | scripts/deblob-2.6.22 | 7 | ||||
| -rwxr-xr-x | scripts/deblob-2.6.23 | 7 | ||||
| -rwxr-xr-x | scripts/deblob-2.6.24 | 7 | ||||
| -rwxr-xr-x | scripts/deblob-2.6.25 | 9 | ||||
| -rwxr-xr-x | scripts/deblob-2.6.26 | 9 | ||||
| -rwxr-xr-x | scripts/deblob-2.6.27 | 9 |
7 files changed, 31 insertions, 24 deletions
diff --git a/scripts/deblob-2.6.21 b/scripts/deblob-2.6.21 index e825b793c..d4c785ca5 100755 --- a/scripts/deblob-2.6.21 +++ b/scripts/deblob-2.6.21 @@ -114,8 +114,7 @@ function clean_mk { if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else - echo $2 does not contain matches for $1 - exit 1 + die $2 does not contain matches for $1 fi } @@ -362,7 +361,9 @@ clean_kconfig drivers/net/Kconfig 'MYRI_SBUS' clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile # TIGON3 - Broadcom Tigon3 -patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch +patch --no-backup-if-mismatch --batch -p0 <<\EOF || \ + die failed to remove license comments from drivers/net/tg3.c \ + # patches/linux-2.6-tg3-clean.patch --- drivers/net/tg3.c +++ drivers/net/tg3.c @@ -5,14 +5,6 @@ diff --git a/scripts/deblob-2.6.22 b/scripts/deblob-2.6.22 index 9203b7254..4f342187e 100755 --- a/scripts/deblob-2.6.22 +++ b/scripts/deblob-2.6.22 @@ -114,8 +114,7 @@ function clean_mk { if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else - echo $2 does not contain matches for $1 - exit 1 + die $2 does not contain matches for $1 fi } @@ -362,7 +361,9 @@ clean_kconfig drivers/net/Kconfig 'MYRI_SBUS' clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile # TIGON3 - Broadcom Tigon3 -patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch +patch --no-backup-if-mismatch --batch -p0 <<\EOF || \ + die failed to remove license comments from drivers/net/tg3.c \ + # patches/linux-2.6-tg3-clean.patch --- drivers/net/tg3.c +++ drivers/net/tg3.c @@ -5,14 +5,6 @@ diff --git a/scripts/deblob-2.6.23 b/scripts/deblob-2.6.23 index 5bd24b965..c6d69d546 100755 --- a/scripts/deblob-2.6.23 +++ b/scripts/deblob-2.6.23 @@ -114,8 +114,7 @@ function clean_mk { if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else - echo $2 does not contain matches for $1 - exit 1 + die $2 does not contain matches for $1 fi } @@ -367,7 +366,9 @@ clean_kconfig drivers/net/Kconfig 'MYRI_SBUS' clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile # TIGON3 - Broadcom Tigon3 -patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch +patch --no-backup-if-mismatch --batch -p0 <<\EOF || \ + die failed to remove license comments from drivers/net/tg3.c \ + # patches/linux-2.6-tg3-clean.patch --- drivers/net/tg3.c +++ drivers/net/tg3.c @@ -5,14 +5,6 @@ diff --git a/scripts/deblob-2.6.24 b/scripts/deblob-2.6.24 index c838cf4c1..d5a873263 100755 --- a/scripts/deblob-2.6.24 +++ b/scripts/deblob-2.6.24 @@ -114,8 +114,7 @@ function clean_mk { if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else - echo $2 does not contain matches for $1 - exit 1 + die $2 does not contain matches for $1 fi } @@ -367,7 +366,9 @@ clean_kconfig drivers/net/Kconfig 'TEHUTI' clean_mk CONFIG_TEHUTI drivers/net/Makefile # TIGON3 - Broadcom Tigon3 -patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch +patch --no-backup-if-mismatch --batch -p0 <<\EOF || \ + die failed to remove license comments from drivers/net/tg3.c \ + # patches/linux-2.6-tg3-clean.patch --- drivers/net/tg3.c +++ drivers/net/tg3.c @@ -5,14 +5,6 @@ diff --git a/scripts/deblob-2.6.25 b/scripts/deblob-2.6.25 index 6dc20a1fc..2091069a8 100755 --- a/scripts/deblob-2.6.25 +++ b/scripts/deblob-2.6.25 @@ -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.25 extra=4 +kver=2.6.25 extra=4++ case $1 in --force) die () { echo ERROR: "$@": ignored >&2; }; shift;; @@ -114,8 +114,7 @@ function clean_mk { if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else - echo $2 does not contain matches for $1 - exit 1 + die $2 does not contain matches for $1 fi } @@ -371,7 +370,9 @@ clean_kconfig drivers/net/Kconfig 'TEHUTI' clean_mk CONFIG_TEHUTI drivers/net/Makefile # TIGON3 - Broadcom Tigon3 -patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch +patch --no-backup-if-mismatch --batch -p0 <<\EOF || \ + die failed to remove license comments from drivers/net/tg3.c \ + # patches/linux-2.6-tg3-clean.patch --- drivers/net/tg3.c +++ drivers/net/tg3.c @@ -5,14 +5,6 @@ diff --git a/scripts/deblob-2.6.26 b/scripts/deblob-2.6.26 index 81355594c..4254c693c 100755 --- a/scripts/deblob-2.6.26 +++ b/scripts/deblob-2.6.26 @@ -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.26 extra=2 +kver=2.6.26 extra=2++ case $1 in --force) die () { echo ERROR: "$@": ignored >&2; }; shift;; @@ -114,8 +114,7 @@ function clean_mk { if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else - echo $2 does not contain matches for $1 - exit 1 + die $2 does not contain matches for $1 fi } @@ -371,7 +370,9 @@ clean_kconfig drivers/net/Kconfig 'TEHUTI' clean_mk CONFIG_TEHUTI drivers/net/Makefile # TIGON3 - Broadcom Tigon3 -patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch +patch --no-backup-if-mismatch --batch -p0 <<\EOF || \ + die failed to remove license comments from drivers/net/tg3.c \ + # patches/linux-2.6-tg3-clean.patch --- drivers/net/tg3.c +++ drivers/net/tg3.c @@ -5,14 +5,6 @@ diff --git a/scripts/deblob-2.6.27 b/scripts/deblob-2.6.27 index 40c53f189..eba13661c 100755 --- a/scripts/deblob-2.6.27 +++ b/scripts/deblob-2.6.27 @@ -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.27 extra= +kver=2.6.27 extra=++ case $1 in --force) die () { echo ERROR: "$@": ignored >&2; }; shift;; @@ -137,8 +137,7 @@ function clean_mk { if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else - echo $2 does not contain matches for $1 - exit 1 + die $2 does not contain matches for $1 fi } @@ -386,7 +385,9 @@ clean_kconfig drivers/net/Kconfig 'TEHUTI' clean_mk CONFIG_TEHUTI drivers/net/Makefile # TIGON3 - Broadcom Tigon3 -patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch +patch --no-backup-if-mismatch --batch -p0 <<\EOF || \ + die failed to remove license comments from drivers/net/tg3.c \ + # patches/linux-2.6-tg3-clean.patch --- drivers/net/tg3.c +++ drivers/net/tg3.c @@ -5,14 +5,6 @@ |

