Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes committed Dec 23, 2023
1 parent 9870d9e commit fe2e060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions help.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ help:
ifeq ($(DETECT_OS),Windows)
@powershell -Command "& { \
Get-Content $(ABSOLUT_MAKEFILE_PATH) | ForEach-Object { \
if ($$_ -match '([a-zA-Z0-9-_]{0,}):.+##\s?(.+)') { \
if ($$_ -match '([a-zA-Z0-9-_]{0,}:).+##\s?(.+)') { \
'{0,-25} {1}' -f $$Matches[1], $$Matches[2] \
} \
} \
}"
else
@sed -ne 's/^\([^[:space:]]*\):.*##/\1:\t/p' $(ABSOLUT_MAKEFILE_PATH) | column -t -s $$'\t'
@sed -ne 's/^\([^[:space:]]*\):.*##/\1: /p' $(ABSOLUT_MAKEFILE_PATH) | awk '{printf "%-25s %s\n", $$1, substr($$0, index($$0,$$2))}'
endif

0 comments on commit fe2e060

Please sign in to comment.