* cygmagic: Change logic for equality test.
This commit is contained in:
parent
7acba9716b
commit
acf05df744
|
@ -1,3 +1,7 @@
|
||||||
|
2002-01-04 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* cygmagic: Change logic for equality test.
|
||||||
|
|
||||||
2002-01-04 Christopher Faylor <cgf@redhat.com>
|
2002-01-04 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
|
* dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
|
||||||
|
|
|
@ -13,7 +13,7 @@ while [ -n "$1" ]; do
|
||||||
sum=`$gcc -E $file | sed -n "/^$struct/,/^};/p" | sed -e 's/[ ]//g' -e '/^$/d' | sum | awk '{printf "0x%x", $1}'`
|
sum=`$gcc -E $file | sed -n "/^$struct/,/^};/p" | sed -e 's/[ ]//g' -e '/^$/d' | sum | awk '{printf "0x%x", $1}'`
|
||||||
echo "#define $define $sum"
|
echo "#define $define $sum"
|
||||||
curr=`sed -n "s/^#[ ]*define CURR_$define[ ][ ]*\([^ ][^ ]*\)/\1/p" $file`
|
curr=`sed -n "s/^#[ ]*define CURR_$define[ ][ ]*\([^ ][^ ]*\)/\1/p" $file`
|
||||||
[ "$curr" == "$sum" ] || echo "*** WARNING WARNING WARNING WARNING WARNING ***
|
[ "$curr" != "$sum" ] && echo "*** WARNING WARNING WARNING WARNING WARNING ***
|
||||||
*** $file: magic number for $define changed old $curr != new $sum
|
*** $file: magic number for $define changed old $curr != new $sum
|
||||||
*** WARNING WARNING WARNING WARNING WARNING ***" 1>&2
|
*** WARNING WARNING WARNING WARNING WARNING ***" 1>&2
|
||||||
done >> $file_magic
|
done >> $file_magic
|
||||||
|
|
Loading…
Reference in New Issue