OCaml Forge

Detail: [#1114] oasis setup-clean does not behave as expected

Feature Requests: Browse | Download .csv | Monitor

[#1114] oasis setup-clean does not behave as expected

Date:
2012-03-13 12:49
Priority:
3
State:
Open
Submitted by:
Gabriel Scherer (bluestorm)
Assigned to:
Sylvain Le Gall (gildor-admin)
Resolution:
None
Due in version:
None
Product:
OASIS
Component:
OASIS
Operating System:
None
 
Summary:
oasis setup-clean does not behave as expected

Detailed description
I'm packaging a very simple library that used a Makefile before. I'm now using _oasis. The compilation being simple, the single _oasis file is enough to do everything to compile (with ocamlbuild), generate a META (I use the plugin) and install the library. That's very good.

Now I want to clean the generated files. I would like that all files that were created by "oasis setup" be removed by the cleaning command. I tried "oasis setup-clean", but it does not behave as I expect:
- `oasis setup-clean` has no observable effect whatsoever
- `oasis setup-clean -replace-sections` removes the content of the files, but not the oasis comments, so I'm left with my directory cluttered as before, with files containing only something like:
# OASIS_START
# DO NOT EDIT (digest: d41d8cd98f00b204e9800998ecf8427e)
# OASIS_STOP

(^blank line before the end of file)

I would like to have a command that would remove all files that didn't exist before the invocation of "oasis setup". This clean command should do that out of the box, without the need to pass an optional parameter (I just want it to clean).

Remark 1: when "oasis setup-clean" did nothing, I did not think of asking "--help", directly went to look at the code and there I noticed this -replace-sections option.

Remark 2: I do not understand the help description for setup-clean: "Clean all template files from their content". I'm not sure this use of "Clean .. from" has a clear meaning in English; in all cases, I would suggest a reformulation that describes the intent better.

Thanks for the work on oasis_.

Followup

No Followups Have Been Posted

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2014-06-16 09:41gildor-admin