-
Notifications
You must be signed in to change notification settings - Fork 3
/
rcsclean.awk
57 lines (54 loc) · 1.28 KB
/
rcsclean.awk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/^\/\* RCS/ { print "/* RCS $Id: rcsclean.awk,v 1.1.1.1 2000-09-22 15:33:25 hr Exp $"; next }
/^-- LOG/,/^\*\// {
if( ! flag ) {
print "-- LOG";
print "-- Use cvs log to obtain detailed change logs.";
print "*/";
flag = 1;
}
next;
}
/^-- SYNOPSIS --/ {
print "--";
print "-- SYNOPSIS";
printf "-- %s%s\n", toupper(substr($0, 16,1)), substr($0,17);
next;
}
/^-- WWW/,/^--$/ {
if( !wflag ) {
print "-- WWW";
print "-- http://dmake.wticorp.com/";
print "--";
wflag = 1;
}
next;
}
/^-- AUTHOR/,/^--$/ {
if( !aflag ) {
print "-- AUTHOR";
print "-- Dennis Vadura, [email protected]";
print "--";
aflag = 1;
}
next;
}
/^-- COPYRIGHT/,/^--$/ {
if( !wflag ) {
print "-- WWW";
print "-- http://dmake.wticorp.com/";
print "--";
wflag = 1;
}
if( !cflag ) {
print "-- COPYRIGHT";
print "-- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.";
print "-- ";
print "-- This program is NOT free software; you can redistribute it and/or";
print "-- modify it under the terms of the Software License Agreement Provided";
print "-- in the file <distribution-root>/COPYING.";
print "--";
cflag = 1;
}
next;
}
{ print; }