head 1.1; branch 1.1.1; access ; symbols EV_8_2_2:1.1.1.1 vendor:1.1.1; locks ; strict; comment @# @; 1.1 date 99.10.20.19.31.13; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.10.20.19.31.13; author rse; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @#!/sw/bin/perl @@F = @@ARGV; @@I = (); $src = ''; foreach $f (@@F) { open(FP, "<$f") || die; $file = ''; $file .= $_ while (); close(FP); if ($f =~ m|\.c$|) { $file =~ s|^.*?\*/\s*\n+||s; $file =~ s|^#include\s+(\S+)\s*\n+|push(@@I, $1), ''|emg; } if ($f =~ m|\.h$|) { $file =~ s|^.*?\*/\s*\n+||s; $file =~ s|^#include\s+(\S+)\s*\n+|push(@@I, $1), ''|emg; } $src .= "\n" . "/*\n" . "** ==== ORIGINAL SOURCE: $f ====\n" . "*/\n" . "\n"; $src .= $file; } $hdr = <