Skip to content

Commit 71e1c22

Browse files
committed
Update Makefile
1 parent 5f230f3 commit 71e1c22

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,16 @@ serve:
110110
.PHONY: progress
111111
.ONESHELL: progress
112112
progress:
113-
@$(PYTHON) -c 'import sys; print("{:.1%}".format(int(sys.argv[1]) / int(sys.argv[2])))' \
114-
@read -p "File: " file; \
115-
ifeq ($$file, "")
113+
ifeq ($(file), "")
116114
@echo "No file specified, showing total progress"; \
115+
@$(PYTHON) -c 'import sys; print("{:.1%}".format(int(sys.argv[1]) / int(sys.argv[2])))' \
117116
$(shell msgcat *.po */*.po | msgattrib --translated | grep -c '^msgid') \
118117
$(shell msgcat *.po */*.po | grep -c '^msgid')
119118

120119
else
121-
$(shell msgcat $$file | msgattrib --translated | grep -c '^msgid') \
122-
$(shell msgcat $$file | grep -c '^msgid')
120+
@$(PYTHON) -c 'import sys; print("{:.1%}".format(int(sys.argv[1]) / int(sys.argv[2])))' \
121+
$(shell msgcat $(file) | msgattrib --translated | grep -c '^msgid') \
122+
$(shell msgcat $(file) | grep -c '^msgid')
123123
endif
124124

125125

0 commit comments

Comments
 (0)