1 # $Id: roken.awk 15409 2005-06-16 16:29:58Z lha $
4 print "#ifdef HAVE_CONFIG_H"
5 print "#include <config.h>"
7 print "#include <stdio.h>"
9 print "int main(int argc, char **argv)"
11 print "puts(\"/* This is an OS dependent, generated file */\");"
12 print "puts(\"\\n\");"
13 print "puts(\"#ifndef __ROKEN_H__\");"
14 print "puts(\"#define __ROKEN_H__\");"
18 $1 == "#ifdef" || $1 == "#ifndef" || $1 == "#if" || $1 == "#else" || $1 == "#elif" || $1 == "#endif" {
25 for(i = 1; i <= length; i++){
27 if(x == "\"" || x == "\\")
31 print "puts(\"" s "\");"
35 print "puts(\"#define ROKEN_VERSION \" VERSION );"
37 print "puts(\"#endif /* __ROKEN_H__ */\");"