2 for (arg=
1; arg
<ARGC; arg
++)
4 copyright=
" Copyright © 1995-2001, The AROS Development Team. All rights reserved.";
7 logtxt=" Revision
1.3 2001/10/30 20:28:20 chodorowski
8 logtxt=
" Fixed copyright notice.
10 logtxt=
" Revision 1.2 1998/10/20 16:46:36 hkiel
11 logtxt=" Amiga Research OS
13 logtxt=" Revision
1.1 1996/08/12 09:59:05 digulla
22 print "Processing
" filename "...
"
24 getline line < filename
26 if (match (line, /^[ \t]*\/\*[ \t]*$/))
30 while (!done
&& (getline line
< filename) > 0)
32 #print "#2 |" line "|"
36 #print "#3 again=" again
38 if (match (line
, /^
[ \t]*[(]C
[)]/))
43 else if (match (line
, /^
[ \t]*\$Id
/))
48 else if (match (line
, /^
[ \t]*\$Log
/))
53 else if (match (line
, /^
[ \t]*Desc
:/))
57 while ((getline line
< filename) > 0)
59 if (match (line
, /^
[ \t]*([(]C
[)]|\$Id
|\$Log
|Desc
:|Lang
:)/))
61 else if (match(line
,/^
[ \t]*\
*\
/[ \t]*$
/))
72 else if (match (line
, /^
[ \t]*Lang
:/))
76 while ((getline line
< filename) > 0)
78 if (match (line
, /^
[ \t]*([(]C
[)]|\$Id
|\$Log
|Desc
:|Lang
:)/))
80 else if (match(line
,/^
[ \t]*\
*\
/[ \t]*$
/))
91 else if (match(line
,/^
[ \t]*\
*\
/[ \t]*$
/))
101 print "Error: done is not set"
111 print copyright
>> out
118 print firstline
>> out
120 while ((getline line
< filename) > 0)
129 system ("mv " out
" " filename);