File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,16 +110,16 @@ serve:
110110.PHONY : progress
111111.ONESHELL : progress
112112progress :
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
You can’t perform that action at this time.
0 commit comments