Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8cff526

Browse files
committed
Make wrap to actually wrap, not just check.
1 parent 51120f1 commit 8cff526

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# - make # Automatically build an HTML local version
66
# - make todo # To list remaining tasks and show current progression
77
# - make verifs # To check for correctness: wrapping, spelling
8-
# - make wrap # To check for wrapping
8+
# - make wrap # To rewrap modified files
99
# - make spell # To check for spelling
1010
# - make clean # To remove build artifacts
1111
# - make fuzzy # To find fuzzy strings
@@ -106,8 +106,8 @@ todo: ensure_prerequisites
106106

107107
.PHONY: wrap
108108
wrap: ensure_prerequisites
109-
@echo "Verify wrapping"
110-
powrap --check --quiet *.po **/*.po
109+
@echo "Re wrapping modified files"
110+
powrap -m
111111

112112
SRCS = $(shell git diff --name-only $(BRANCH) | grep '.po$$')
113113
# foo/bar.po => $(POSPELL_TMP_DIR)/foo/bar.po.out
@@ -126,7 +126,8 @@ fuzzy: ensure_prerequisites
126126
potodo -f --exclude venv .venv $(EXCLUDED)
127127

128128
.PHONY: verifs
129-
verifs: wrap spell
129+
verifs: spell
130+
powrap --check --quiet *.po */*.po
130131

131132
.PHONY: clean
132133
clean:

0 commit comments

Comments
 (0)