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:
@@ -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 "}"
|
||||
}
|
||||
|
Reference in New Issue
Block a user