Skip to content

Commit

Permalink
Add Build.touch
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrinberg committed Feb 18, 2017
1 parent ce8f02e commit cbcd501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/build.ml
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,5 @@ let copy ~src ~dst =
path src >>>
create_file ~target:dst (fun () ->
copy_file ~src:(Path.to_string src) ~dst:(Path.to_string dst))

let touch path = return "" >>> echo path
2 changes: 2 additions & 0 deletions src/build.mli
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ val echo : Path.t -> (string, unit) t

val copy : src:Path.t -> dst:Path.t -> (unit, unit) t

val touch : Path.t -> (unit, unit) t

type lib_dep_kind =
| Optional
| Required
Expand Down

0 comments on commit cbcd501

Please sign in to comment.