There was an error while loading. Please reload this page.
1 parent 5e54e4f commit 1c6e81fCopy full SHA for 1c6e81f
1 file changed
Makefile
@@ -110,8 +110,16 @@ serve:
110
.PHONY: progress
111
progress:
112
@$(PYTHON) -c 'import sys; print("{:.1%}".format(int(sys.argv[1]) / int(sys.argv[2])))' \
113
- $(shell msgcat *.po */*.po | msgattrib --translated | grep -c '^msgid') \
114
- $(shell msgcat *.po */*.po | grep -c '^msgid')
+ @echo "File: "; \
+ read FILE; \
115
+ ifeq ($$(FILE), "")
116
+ @echo "No file specified, showing total progress"; \
117
+ $(shell msgcat *.po */*.po | msgattrib --translated | grep -c '^msgid') \
118
+ $(shell msgcat *.po */*.po | grep -c '^msgid')
119
+
120
+ else
121
+ $(shell msgcat $$(FILE) | msgattrib --translated | grep -c '^msgid') \
122
+ $(shell msgcat $$(FILE) | grep -c '^msgid')
123
124
125
.PHONY: todo
0 commit comments