]> git.pond.sub.org Git - empserver/blob - src/scripts/cvsfiles.awk
Replace the build process. The new one requires GNU Make, Autoconf
[empserver] / src / scripts / cvsfiles.awk
1 #!/usr/bin/awk -f
2 # Find files under CVS control
3 # FIXME Ignores CVS/Entries.log
4
5 BEGIN {
6     FS="/";
7     if (ARGC == 1)
8         ARGV[ARGC++] = "CVS/Entries";
9     else {
10         for (i = 1; i < ARGC; i++)
11             ARGV[i] = ARGV[i] "/CVS/Entries";
12     }
13 }
14
15 { cwd = FILENAME; sub(/CVS\/Entries$/, "", cwd); }
16
17 /^\// {
18     if ($3 !~ /^-/)
19         print cwd $2;
20 }
21
22 /^D/ && NF > 1 {
23     ARGV[ARGC++] = cwd $2 "/CVS/Entries";
24 }