Skip to content

Commit

Permalink
makefile: fix sed --promote-install-files dune arg retrieving
Browse files Browse the repository at this point in the history
Get only the option itself in help, don't get appearing ones in text blocks
  • Loading branch information
rjbou committed Apr 14, 2020
1 parent c9afcad commit 841ecb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ OPAMINSTALLER = ./opam-installer$(EXE)
ALWAYS:
@

DUNE_PROMOTE_ARG := $(shell dune build --help=plain 2>/dev/null | sed -ne 's/.*\(--promote-install-files\).*/ \1/p')
DUNE_PROMOTE_ARG := $(shell dune build --help=plain 2>/dev/null | sed -ne 's/^[[:space:]]*\(--promote-install-files\)[[:space:]]*$$/ \1/p')
DUNE_DEP = $(DUNE_EXE)
JBUILDER_ARGS ?=
DUNE_ARGS ?= $(JBUILDER_ARGS)
Expand Down

0 comments on commit 841ecb3

Please sign in to comment.