File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,18 +108,19 @@ serve:
108108
109109
110110.PHONY : progress
111+ .ONESHELL : progress
111112progress :
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
You can’t perform that action at this time.
0 commit comments