From 84983df02dd2e53b738e9959312e411f5610f4dc Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 26 Mar 2001 09:26:35 +0000 Subject: [PATCH] END has to be last with Sun's awk git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9772 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken.awk | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/roken/roken.awk b/lib/roken/roken.awk index 3d19895f8..799005e88 100644 --- a/lib/roken/roken.awk +++ b/lib/roken/roken.awk @@ -14,13 +14,6 @@ BEGIN { print "puts(\"#define __ROKEN_H__\");" print "puts(\"\");" } -END { - print "puts(\"#define ROKEN_VERSION \" VERSION );" - print "puts(\"\");" - print "puts(\"#endif /* __ROKEN_H__ */\");" - print "return 0;" - print "}" -} $1 == "\#ifdef" || $1 == "\#ifndef" || $1 == "\#if" || $1 == "\#else" || $1 == "\#elif" || $1 == "\#endif" || $1 == "#ifdef" || $1 == "#ifndef" || $1 == "#if" || $1 == "#else" || $1 == "#elif" || $1 == "#endif" { print $0; @@ -37,3 +30,11 @@ $1 == "\#ifdef" || $1 == "\#ifndef" || $1 == "\#if" || $1 == "\#else" || $1 == " } print "puts(\"" s "\");" } + +END { + print "puts(\"#define ROKEN_VERSION \" VERSION );" + print "puts(\"\");" + print "puts(\"#endif /* __ROKEN_H__ */\");" + print "return 0;" + print "}" +}