File: genlinks

package info (click to toggle)
erlang 1%3A28.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 235,640 kB
  • sloc: erlang: 1,685,753; ansic: 436,891; cpp: 178,143; xml: 82,195; makefile: 15,086; sh: 14,588; lisp: 9,856; java: 8,603; asm: 6,829; perl: 5,874; python: 5,482; sed: 72
file content (32 lines) | stat: -rwxr-xr-x 887 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/perl -w

my $erts_version=$ARGV[0];
my @files = `ls -d *\-*`;
chomp(@files);

my($filename);
foreach $filename (@files) {
        my($name) = $filename;
        print STDERR "Incorporating $filename:";

        #
        #  Add documentation directories
        #
        my(@info) = `ls $filename`;
        foreach $line (@info) {
                chomp($line);
                print STDERR " $line";
                print "/usr/share/doc/erlang-doc/html/lib/" . $filename . "/" . $line;
                print "  /usr/lib/erlang/lib/" . $filename . "/" . $line;
                print "\n";
        }
	print STDERR "\n";
}

#
#  Closing boilerplate
#
print "/usr/share/doc/erlang-doc/html/erts-$erts_version/doc /usr/lib/erlang/erts-$erts_version/doc\n";
print "/usr/share/doc/erlang-doc/html/doc /usr/lib/erlang/doc\n";

print STDERR "Finished generating erlang-doc.links\n";