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
This commit is contained in:
Johan Danielsson
2001-03-26 09:26:35 +00:00
parent 31cbd16e0e
commit 84983df02d

View File

@@ -14,13 +14,6 @@ BEGIN {
print "puts(\"#define __ROKEN_H__\");" print "puts(\"#define __ROKEN_H__\");"
print "puts(\"\");" 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" { $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; print $0;
@@ -37,3 +30,11 @@ $1 == "\#ifdef" || $1 == "\#ifndef" || $1 == "\#if" || $1 == "\#else" || $1 == "
} }
print "puts(\"" s "\");" print "puts(\"" s "\");"
} }
END {
print "puts(\"#define ROKEN_VERSION \" VERSION );"
print "puts(\"\");"
print "puts(\"#endif /* __ROKEN_H__ */\");"
print "return 0;"
print "}"
}