[m-rev.] for post-commit review: generate batch file launchers for the java grade on Windows
Julien Fischer
juliensf at csse.unimelb.edu.au
Tue Jan 4 14:34:17 AEDT 2011
On Tue, 4 Jan 2011, Peter Wang wrote:
> On 2011-01-04, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>> +
>> + list.foldl(io.write_string(Stream), [
>> + "@echo off\n",
>> + "rem Automatically generated by the Mercury compiler.\n",
>> + "setlocal\n",
>> + "set DIR=$~dp0\n",
>
> Should that be %~dp0?
Yes - the ~dp modifier gives you the directory path.
>> @@ -909,6 +964,12 @@
>> " -s init stop -extra ""$@""\n"
>> ], !IO).
>>
>> +:- pred write_erlang_batch_file(globals::in, module_name::in,
>> + io.text_output_stream::in, io::di, io::uo) is det.
>> +
>> +write_erlang_batch_file(_Globals, _MainModuleName, _Stream, _, _) :-
>> + sorry($pred, "Batch file lanuchers NYI for Erlang graade.").
>
> launchers
It will be replaced shortly anyway.
Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list