From: Tom Yu Date: Tue, 17 Dec 1996 23:14:11 +0000 (+0000) Subject: * getsyms: Don't echo filename if there are no bad symbols X-Git-Tag: krb5-1.1-beta1~1409 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94f0105ba12c15271973656bde27f8a2535d364e;p=krb5.git * getsyms: Don't echo filename if there are no bad symbols * 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 --- diff --git a/src/util/ChangeLog b/src/util/ChangeLog index 4c5f1c633..5f074079b 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,10 @@ +Fri Dec 6 10:59:32 1996 Tom Yu + + * 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 * mkrel: Add support for --srconly, --doconly, --nocheckout, diff --git a/src/util/getsyms b/src/util/getsyms index d21f16cb7..130fae64d 100644 --- a/src/util/getsyms +++ b/src/util/getsyms @@ -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 diff --git a/src/util/getsyms.sed b/src/util/getsyms.sed index 7bd33dbd7..a24b5157f 100644 --- a/src/util/getsyms.sed +++ b/src/util/getsyms.sed @@ -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