* 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
+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,
badsyms="$badsyms $sym"
fi
done
- echo $file:$badsyms
+ if test -n "$badsyms"; then
+ echo $file:$badsyms
+ fi
done
fi
done
# 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