| [2] | 1 | # classes.pl - A perl program to generate most of the contents of
|
|---|
| 2 | # javaprims.h automatically.
|
|---|
| 3 |
|
|---|
| 4 | # Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
|
|---|
| 5 | #
|
|---|
| 6 | # This file is part of libjava.
|
|---|
| 7 | #
|
|---|
| 8 | # This software is copyrighted work licensed under the terms of the
|
|---|
| 9 | # Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|---|
| 10 | # details.
|
|---|
| 11 |
|
|---|
| 12 | # Usage: cd <top-srcdir> ; perl classes.pl.
|
|---|
| 13 | # Can also be run from the `include' directory; this lets us
|
|---|
| 14 | # more easily insert the output into javaprims.h (which is where it goes).
|
|---|
| 15 |
|
|---|
| 16 | use DirHandle;
|
|---|
| 17 |
|
|---|
| 18 | if (-d 'java')
|
|---|
| 19 | {
|
|---|
| 20 | # Ok here.
|
|---|
| 21 | }
|
|---|
| 22 | elsif (-d '../java')
|
|---|
| 23 | {
|
|---|
| 24 | chdir ('..');
|
|---|
| 25 | }
|
|---|
| 26 | else
|
|---|
| 27 | {
|
|---|
| 28 | die "couldn't find java directory\n";
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | &scan ('java', 2);
|
|---|
| 32 |
|
|---|
| 33 | exit 0;
|
|---|
| 34 |
|
|---|
| 35 | sub scan
|
|---|
| 36 | {
|
|---|
| 37 | local ($dir, $indent) = @_;
|
|---|
| 38 | local (@subdirs) = ();
|
|---|
| 39 | local (%classes) = ();
|
|---|
| 40 |
|
|---|
| |
|---|