remove gcc34
[dragonfly.git] / crypto / heimdal-0.6.3 / lib / roken / roken.awk
blob1c1e0c071ef993caf3aa860744bc1ae421d19290
1 # $Id: roken.awk,v 1.9 2003/03/04 10:37:26 lha Exp $
3 BEGIN {
4 print "#ifdef HAVE_CONFIG_H"
5 print "#include <config.h>"
6 print "#endif"
7 print "#include <stdio.h>"
8 print ""
9 print "int main(int argc, char **argv)"
10 print "{"
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__\");"
15 print "puts(\"\");"
18 $1 == "\#ifdef" || $1 == "\#ifndef" || $1 == "\#if" || $1 == "\#else" || $1 == "\#elif" || $1 == "\#endif" || $1 == "#ifdef" || $1 == "#ifndef" || $1 == "#if" || $1 == "#else" || $1 == "#elif" || $1 == "#endif" {
19 print $0;
20 next
24 s = ""
25 for(i = 1; i <= length; i++){
26 x = substr($0, i, 1)
27 if(x == "\"" || x == "\\")
28 s = s "\\";
29 s = s x;
31 print "puts(\"" s "\");"
34 END {
35 print "puts(\"#define ROKEN_VERSION \" VERSION );"
36 print "puts(\"\");"
37 print "puts(\"#endif /* __ROKEN_H__ */\");"
38 print "return 0;"
39 print "}"