* cygmagic: Change logic for equality test.

This commit is contained in:
Christopher Faylor 2002-01-04 23:29:58 +00:00
parent 7acba9716b
commit acf05df744
2 changed files with 5 additions and 1 deletions

View File

@ -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>
* dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.

View File

@ -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}'`
echo "#define $define $sum"
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
*** WARNING WARNING WARNING WARNING WARNING ***" 1>&2
done >> $file_magic