www.digitalmars.com         C & C++   DMDScript  

D.gnu - [patch] version information via wraper

reply Thomas Kuehne <thomas-dloop kuehne.THISISSPAM.cn> writes:
 boundary="------------080200070802070608070804"

This is a multi-part message in MIME format.
--------------080200070802070608070804
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


The attached patch enables the following syntax to query version
information from DMD and DMD-script via "dmd -v".

Thomas


--------------080200070802070608070804
Content-Type: text/plain;
 name="dmd-gdc-0.11pre.patch"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="dmd-gdc-0.11pre.patch"

LS0tICBkbWQtMC4xMXByZS9kL2RtZC1zY3JpcHQJMjAwNS0wNC0xMiAxMzowMTo0Ni4wMDAw
MDAwMDAgKzAyMDAKKysrICBkbWQtMC4xMXByZS9kL2RtZC1zY3JpcHQJMjAwNS0wNC0xMiAx
OToyMDoyMS43MDA1MzQ1MzYgKzAyMDAKQEAgLTE1NywxMiArMTU3LDE2IEBACiAgICAgfQog
fQogCitteSAkb2sgPSAxOworCiBpZiAoISBzY2FsYXIoQHNvdXJjZXMpICYmICEgKCRsaW5r
ICYmIHNjYWxhcihAb2JqZWN0cykpKSB7Ci0gICAgZXJyb3JFeGl0ICJubyBpbnB1dCBmaWxl
cyI7CisJbXkgQGNtZCA9ICgnZ2RjJywgQG91dCk7CisJbXkgJHJlc3VsdCA9IHN5c3RlbShA
Y21kKTsKKwllcnJvckV4aXQgaWYgJHJlc3VsdCAmIDB4ZmY7ICMgR2l2ZSB1cCBpZiBjYW4n
dCBleGVjIG9yIGdkYyBleGl0ZWQgd2l0aCBhIHNpZ25hbAorCSRvayA9ICRvayAmJiAkcmVz
dWx0ID09IDA7CisJZXhpdCAoJG9rID8gMCA6IDEpOwkKIH0KIAotbXkgJG9rID0gMTsKLQog
Zm9yZWFjaCBteSAkc3JjZl9pIChAc291cmNlcykgewogICAgICMgU3RlcCAxOiBEZXRlcm1p
bmUgdGhlIG9iamVjdCBmaWxlIHBhdGgKICAgICBteSAkb3V0ZjsK
--------------080200070802070608070804--
Apr 12 2005
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Thomas Kuehne wrote:

 The attached patch enables the following syntax to query version
 information from DMD and DMD-script via "dmd -v".
This could probably be modified into displaying some kind of banner, when called without files, just like DMD does: GNU D Compiler v0.11 Copyright (c) 1987-2005 by Free Software Foundation written by David Friedman Documentation: http://www.digitalmars.com/d/ Usage: dmd files.d ... { -switch } files.d D source files -c do not link [blah blah blah] -w enable warnings Even it is now to be called "gdmd", it would probably make users of "dmd" feel more at home with the wrapper ? Even nicer would be for Walter to release the documentation, but that can probably wait until D 1.0 (in the worst case). Probably need to write new docs for GDC anyway... (tailored) Would be kinda hard to do without using the D spec, though ? --anders
May 07 2005