]> sourceware.org Git - newlib-cygwin.git/commitdiff
* cygmagic: Eliminate unneeded use of 'tr' and 'bc'.
authorChristopher Faylor <me@cgf.cx>
Sun, 30 Dec 2001 18:52:19 +0000 (18:52 +0000)
committerChristopher Faylor <me@cgf.cx>
Sun, 30 Dec 2001 18:52:19 +0000 (18:52 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/cygmagic

index b48f477c9267c0c84eba65c312eccca5e5d3e97d..38635d3b74f5db51aab9f130a7b9b80854fb71c8 100644 (file)
@@ -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
index f63531dee38f3ffe1fb324f0236c27767835fa34..5589b26f6749472b226bb09dfd96565f60b11c2c 100755 (executable)
@@ -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 ***
This page took 0.033247 seconds and 5 git commands to generate.