dbuenzli / topkg

The transitory OCaml software packager
http://erratique.ch/software/topkg
ISC License
68 stars 25 forks source link

Expose `OS.File.watermark` to allow watermarking as pre-build hooks #63

Closed samoht closed 8 years ago

samoht commented 8 years ago

It is sometimes useful to invoke the watermarking function manually, for instance during pre-build hooks (see here)

To do so, it would be useful to either expose OS.File.write_subst or a new function OS.File.watermark ~input ~output which will read and write directly.