Some improvements for nakeJava script
kaffe@rufus.w3.org
kaffe@rufus.w3.org
Thu, 20 Aug 1998 19:46:28 +0100
--0__=fzOTAB7eQGyeeMJMjr03lQsv8UJ8jAW8wYaUv2I5HEKALfpgi1t3d4hb
Content-type: text/plain; charset=US-ASCII
Hello!
I have made following changes in libraries/javalib/makeJava script:
1) It is now possible to specify "all" to rebuild all classes found in java
and kaffe subdirectories
2) New directories (where *.class should go) are created if they don't
exist
3) If some error happens we try to compile remaining files
4) If the compiler reports no error, but resulting file is not created,
exit with fatal error (and show package name which is probably incorrect).
5) Summary information is displayed when the script finishes
6) Default dstdir is "lib" instead of "."
7) ".java" is stripped only from the end of filenames
8) Many minor renicements, mostly for better configurablility and better
srcdir support.
Note: this script _will_ fail for java.awt.widget.* because they have
incorrect "package" directive.
Patch follows.
Pavel Roskin <pavel.roskin@ecsoft.co.uk>
(See attached file: kaffe-mj.diff)
--0__=fzOTAB7eQGyeeMJMjr03lQsv8UJ8jAW8wYaUv2I5HEKALfpgi1t3d4hb
Content-type: application/octet-stream;
name="kaffe-mj.diff"
Content-transfer-encoding: base64
LS0tIGthZmZlL2xpYnJhcmllcy9qYXZhbGliL21ha2VKYXZhLm9yaWcJVHVlIEp1bCAxNCAxNTow
MjoxMiAxOTk4CisrKyBrYWZmZS9saWJyYXJpZXMvamF2YWxpYi9tYWtlSmF2YQlUaHUgQXVnIDIw
IDE5OjQ3OjQxIDE5OTgKQEAgLTMsNyArMyw3IEBACiAjIFNpbXBsZSBsaXR0bGUgc2NyaXB0IHdo
aWNoIGJ1aWxkcyB0aGUgLmNsYXNzIGZpbGVzIHdoaWNoIGFyZSBvbGRlcgogIyB0aGFuIHRoZSAu
amF2YSBmaWxlcy4KICMKLSMgdXNhZ2U6IG1ha2VKYXZhIFstc3JjZGlyIHBhdGhdIFstZHN0ZGly
IHBhdGhdIGphdmEgZmlsZXMgLi4uLgorIyB1c2FnZTogbWFrZUphdmEgWy1zcmNkaXIgcGF0aF0g
Wy1kc3Rka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