* getsyms: Don't echo filename if there are no bad symbols
authorTom Yu <tlyu@mit.edu>
Tue, 17 Dec 1996 23:14:11 +0000 (23:14 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 17 Dec 1996 23:14:11 +0000 (23:14 +0000)
* getsyms.sed: Fixup to handle long comments somewhat more
gracefully.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9639 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ChangeLog
src/util/getsyms
src/util/getsyms.sed

index 4c5f1c633009a1bd78ff2ba5fdc2e1bf0758c400..5f074079bfa96b93261570cf6ee54f7248750d65 100644 (file)
@@ -1,3 +1,10 @@
+Fri Dec  6 10:59:32 1996  Tom Yu  <tlyu@mit.edu>
+
+       * getsyms: Don't echo filename if there are no bad symbols.
+
+       * getsyms.sed: Fixup to handle long comments somewhat more
+       gracefully.
+
 Mon Nov 25 21:00:24 1996  Tom Yu  <tlyu@mit.edu>
 
        * mkrel: Add support for --srconly, --doconly, --nocheckout,
index d21f16cb71f8ca26fae1e0f8ea67775dbb34deb4..130fae64d501785de17133b27018dd6a38b43eb6 100644 (file)
@@ -55,7 +55,9 @@ for dir in $configs; do
                                badsyms="$badsyms $sym"
                        fi
                done
-               echo $file:$badsyms
+               if test -n "$badsyms"; then
+                       echo $file:$badsyms
+               fi
        done
        fi
 done
index 7bd33dbd7d9a01c1453d321e9352ee060681ed76..a24b5157f7ea8cc47c09a0adf0c8bf35cff3ffac 100644 (file)
@@ -1,26 +1,28 @@
 # emulate a C preprocessor (well, sort of)
+:TOP
 y/     / /
 s/  */ /g
+s%/\*.*\*/%%
 /\/\*/{
        :COMMENT
-       y/      / /
-       s/  */ /g
        /\*\//!{
+               s/.*//
                N
                bCOMMENT
        }
+       s%^.*\*/%%
+       bTOP
 }
-s/\/\*.*\*\///
-/^ *#ifdef/{
-       s/^ *#ifdef //
+/^ *# *ifdef/{
+       s/^ *# *ifdef //
        b
 }
-/^ *#ifndef/{
-       s/^ *#ifndef //
+/^ *# *ifndef/{
+       s/^ *# *ifndef //
        b
 }
-/^ *#if.*defined/{
-       s/^ *#if //
+/^ *# *if.*defined/{
+       s/^ *# *if //
        :IF
        /^defined/!{
                :NUKE