barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
|
Last change
on this file since 7980fb2 was
09489b89,
checked in by James M. Kretchmar <kretch@mit.edu>, 22 years ago
|
|
First pass at making owl build without zephyr
|
-
Property mode set to
100755
|
|
File size:
640 bytes
|
| Line | |
|---|
| 1 | #! /usr/bin/perl |
|---|
| 2 | # $Id$ |
|---|
| 3 | |
|---|
| 4 | if ($#ARGV eq -1) { |
|---|
| 5 | @ARGV=`ls *.c`; |
|---|
| 6 | chop(@ARGV); |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | foreach $file (@ARGV) { |
|---|
| 10 | open(FILE, $file); |
|---|
| 11 | |
|---|
| 12 | print "/* -------------------------------- $file -------------------------------- */\n"; |
|---|
| 13 | while (<FILE>) { |
|---|
| 14 | if (/^\S/ |
|---|
| 15 | && (/\{\s*$/ || /\)\s*$/) |
|---|
| 16 | && !/\}/ |
|---|
| 17 | && !/^\{/ |
|---|
| 18 | && !/^#/ |
|---|
| 19 | && !/^static/ |
|---|
| 20 | && !/^system/ |
|---|
| 21 | && !/^XS/ |
|---|
| 22 | && !/\/\*/ |
|---|
| 23 | && !/ZWRITEOPTIONS/ |
|---|
| 24 | && !/owlfaim_priv/) |
|---|
| 25 | { |
|---|
| 26 | |
|---|
| 27 | s/\s+\{/\;/; |
|---|
| 28 | s/\)[ \t]*$/\)\;/; |
|---|
| 29 | print "extern "; |
|---|
| 30 | print; |
|---|
| 31 | } elsif (/^#if/ || /^#else/ || /^#endif/) { |
|---|
| 32 | print; |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | } |
|---|
| 36 | close(FILE); |
|---|
| 37 | print "\n"; |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.