source: trunk/src/gcc/libjava/scripts/classes.pl@ 1930

Last change on this file since 1930 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.5 KB
RevLine 
[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
16use DirHandle;
17
18if (-d 'java')
19{
20 # Ok here.
21}
22elsif (-d '../java')
23{
24 chdir ('..');
25}
26else
27{
28 die "couldn't find java directory\n";
29}
30
31&scan ('java', 2);
32
33exit 0;
34
35sub scan
36{
37 local ($dir, $indent) = @_;
38 local (@subdirs) = ();
39 local (%classes) = ();
40