* cygmagic: Eliminate unneeded use of 'tr' and 'bc'.
This commit is contained in:
parent
5d3949b064
commit
cdd3a8bd67
@ -1,3 +1,7 @@
|
||||
2001-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
|
||||
|
||||
* cygmagic: Eliminate unneeded use of 'tr' and 'bc'.
|
||||
|
||||
2001-12-30 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* security.cc (open_local_policy): Use POLICY_EXECUTE instead of
|
||||
|
@ -10,7 +10,7 @@ EOF
|
||||
while [ -n "$1" ]; do
|
||||
define=$1; shift
|
||||
struct=$1; shift
|
||||
sum=`$gcc -E $file | sed -n "/^$struct/,/^};/p" | sed -e 's/[ ]//g' -e '/^$/d' | sum | awk '{print "obase=16;\"0x\";", $1}' | bc | tr '[A-Z]' '[a-z]'`
|
||||
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 ***
|
||||
|
Loading…
Reference in New Issue
Block a user