tup icon indicating copy to clipboard operation
tup copied to clipboard

Wildcard in extra outputs

Open tehKaiN opened this issue 7 years ago • 3 comments

Suppose I'm building tests for gcov, generating executable without hassle. Then I want to generate HTML report using gcovr:

: BuildTest/my_test.exe |> \
	python ./scripts/gcovr ./BuildTest $(GCOV_OPTS) -o %o |> CoverageHtml/coverage.html

Problem is, gcovr generates lotsa files using pattern: coverage.fileName_o.html. So I thought being able to write following would be cool:

: BuildTest/my_test.exe |> \
	python ./scripts/gcovr ./BuildTest $(GCOV_OPTS) -o %o |> CoverageHtml/coverage.html | CoverageHtml/coverage.*.html

or some other means to avoid writing 100+ extra files and updating this rule manually every now and then. ;)

I'm on windows, if it means anything.

tehKaiN avatar Aug 10 '18 07:08 tehKaiN

AFAIK that's not possible (at least right now). Depending on your workflow, it might be feasible to have the output files zipped together, especially since Windows Explorer (at least on Windows 10) can open ZIP files natively. You would just need to wrap the coverage report generation in a script that zipped the output files together, deleting them afterwards.

kalrish avatar Aug 10 '18 11:08 kalrish

Is there will to adopt such a feature in tup if someone contributed an implementation? Or wildcard outputs don't fit into tup's design?

tomeksowi avatar Nov 28 '18 10:11 tomeksowi

there's regex support added as described here: https://github.com/gittup/tup/issues/182#issuecomment-425518883 . Perhaps it'd fix things for me, I'll test it later.

tehKaiN avatar Feb 06 '19 09:02 tehKaiN