makeJava - further enhancements
kaffe@rufus.w3.org
kaffe@rufus.w3.org
Fri, 21 Aug 1998 19:32:39 +0100
--0__=XKgKURCuoga5cAiRtSJPHnKXx2Emj5ipSwTeWzAGQgnovdBCiVrky5n4
Content-type: text/plain; charset=US-ASCII
Hello!
I've made further enhancements in makeJava script:
1) -unsafe option turns off checking if the compiler actually creates
output files. It is necessary until java.awt.widget.* problem is fixed.
2) -batch option puts all files which must be compiled in one command line.
3) -force option turns off timestamp checking. "makeJava -batch -force"
should do the same thing as rebuildLib.
4) Better argument parsing.
5) Exit codes are documented.
6) Support for shells whose "echo" doesn't accept "-n".
7) Many minor renicements.
I send the whole file, because it is not (yet) too big.
Pavel Roskin <pavel.roskin@ecsoft.co.uk>
(See attached file: makeJava)
--0__=XKgKURCuoga5cAiRtSJPHnKXx2Emj5ipSwTeWzAGQgnovdBCiVrky5n4
Content-type: application/octet-stream;
name="makeJava"
Content-transfer-encoding: base64
IyEgL2Jpbi9zaAojCiMgU2ltcGxlIGxpdHRsZSBzY3JpcHQgd2hpY2ggYnVpbGRzIHRoZSAuY2xh
c3MgZmlsZXMgd2hpY2ggYXJlIG9sZGVyCiMgdGhhbiB0aGUgLmphdmEgZmlsZXMuCiMKIyBFeGl0
IGNvZGVzOiAwIC0gT2ssIDEgLSBiYWQgb3B0aW9ucywgMiAtIGNvbXBpbGUgZXJyb3JzLCAzIC0g
ZmF0YWwgZXJyb3JzCiMKIyBDb3B5cmlnaHQgKGMpIDE5OTcsIDE5OTgKIyAgICAgIFRyYW5zdmly
dHVhbCBUZWNobm9sb2dpZXMsIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCiMKIyBTZWUgdGhl
IGZpbGUgImxpY2Vuc2UudGVybXMiIGZvciBpbmZvcm1hdGlvbiBvbiB1c2FnZSBhbmQgcmVkaXN0
cmlidXRpb24KIyBvZiB0aGlzIGZpbGUuCiMKCmlmIHRlc3QgIiQqIiA9ICIiIDsgdGhlbgoJZWNo
byAidXNhZ2U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