check_integrity.sh: remove the -c option from awk invocations.
Ubuntu now (16.04) comes with 'mawk', which doesn't recognize the -c option, so simply remove it. Its meaning was to switch into 'traditional' mode.
This commit is contained in:
parent
3dd430de59
commit
535fa0c171
|
|
@ -25,7 +25,7 @@ echo 0 > ${EXITFILE}
|
||||||
for T in "board" "printer"; do
|
for T in "board" "printer"; do
|
||||||
# Test #1: are all #defines in the generic config in all the individual
|
# Test #1: are all #defines in the generic config in all the individual
|
||||||
# files?
|
# files?
|
||||||
awk -c '
|
awk '
|
||||||
/^#define/ {
|
/^#define/ {
|
||||||
print $2;
|
print $2;
|
||||||
}
|
}
|
||||||
|
|
@ -44,7 +44,7 @@ for T in "board" "printer"; do
|
||||||
# Test #2: the opposite, has the generic config all of the latest three
|
# Test #2: the opposite, has the generic config all of the latest three
|
||||||
# individual configs?
|
# individual configs?
|
||||||
for F in $(ls -t ${T}.*.h | head -3); do
|
for F in $(ls -t ${T}.*.h | head -3); do
|
||||||
awk -c '
|
awk '
|
||||||
/^\/\/DEFINE_HEATERS_START/, /^\/\/DEFINE_HEATERS_END/ {
|
/^\/\/DEFINE_HEATERS_START/, /^\/\/DEFINE_HEATERS_END/ {
|
||||||
# This section is created on the fly, so not in the generic file.
|
# This section is created on the fly, so not in the generic file.
|
||||||
next;
|
next;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue