3 # Yeah, I know, probably 1000 other persons already wrote a script like
4 # this, but I'll tell ya:
6 # THEY DON'T FIT ME :-)
8 # Get readme file as parameter:
12 print "usage: mkreadme.pl <README>\n";
17 push @out, " _ _ ____ _ \n";
18 push @out, " Project ___| | | | _ \\| | \n";
19 push @out, " / __| | | | |_) | | \n";
20 push @out, " | (__| |_| | _ <| |___ \n";
21 push @out, " \\___|\\___/|_| \\_\\_____|\n";
28 # this kind should be removed first:
34 if($line =~ /^curl/i) {
35 # cut off the page headers
40 if($line =~ /^[ \t]*\n/) {
42 # we only make one empty line max
54 push @out, "\n"; # just an extra newline
56 open(READ
, "<$README") ||
57 die "couldn't read the README infile";
65 print "/* NEVER EVER edit this manually, fix the mkhelp script instead! */\n"
67 print "#include <stdio.h>\n";
68 print "void hugehelp(void)\n";
80 printf("\"%s\\n\"\n", $new);