Skip to content

Commit 07e45be

Browse files
committed
Update Makefile
1 parent 1c6e81f commit 07e45be

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,19 @@ serve:
108108

109109

110110
.PHONY: progress
111+
.ONESHELL: progress
111112
progress:
112113
@$(PYTHON) -c 'import sys; print("{:.1%}".format(int(sys.argv[1]) / int(sys.argv[2])))' \
113-
@echo "File: "; \
114-
read FILE; \
115-
ifeq ($$(FILE), "")
114+
@read -p "File: " file; \
115+
ifeq ($$file, "") \
116116
@echo "No file specified, showing total progress"; \
117117
$(shell msgcat *.po */*.po | msgattrib --translated | grep -c '^msgid') \
118118
$(shell msgcat *.po */*.po | grep -c '^msgid')
119119

120-
else
121-
$(shell msgcat $$(FILE) | msgattrib --translated | grep -c '^msgid') \
122-
$(shell msgcat $$(FILE) | grep -c '^msgid')
120+
else \
121+
$(shell msgcat $$file | msgattrib --translated | grep -c '^msgid') \
122+
$(shell msgcat $$file | grep -c '^msgid')
123+
endif
123124

124125

125126
.PHONY: todo

0 commit comments

Comments
 (0)