From 318354644efd3891bcca1284d94339ce08914546 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 17 Dec 2018 04:25:59 -0500 Subject: pydist.sh: use printf more elegantly. --- project/pydist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'project') diff --git a/project/pydist.sh b/project/pydist.sh index 26701d0..2997b19 100755 --- a/project/pydist.sh +++ b/project/pydist.sh @@ -37,7 +37,7 @@ printf '\t$(PYDIST_PYCDIR)/./_sysconfigdata.py\n\n' cpvar=$(printf '\tcp -p $(%s)' 'PYDIST_SYSCFG_SRCS') printf '%-64s$(DESTDIR)/$(LIBDIR)/$(PACKAGE)\n' "$cpvar" >> $pysrcs -cpvar=$(printf '\tcp -p $(%s:%s.py=%s.pyc)' 'PYDIST_SYSCFG_SRCS' '%' '%') +cpvar=$(printf '\tcp -p $(%s:%%.py=%%.pyc)' 'PYDIST_SYSCFG_SRCS') printf '%-68s$(DESTDIR)/$(LIBDIR)/$(PACKAGE)\n' "$cpvar" >> $pypycs for pydir in $pydirs; do @@ -52,7 +52,7 @@ for pydir in $pydirs; do cpvar=$(printf '\tcp -p $(%s)' "$pyvar") printf '%-64s$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/%s\n' "$cpvar" "$pydir" >> $pysrcs - cpvar=$(printf '\tcp -p $(%s:%s.py=%s.pyc)' "$pyvar" '%' '%') + cpvar=$(printf '\tcp -p $(%s:%%.py=%%.pyc)' "$pyvar") printf '%-68s$(DESTDIR)/$(LIBDIR)/$(PACKAGE)/%s\n' "$cpvar" "$pydir" >> $pypycs for pysrc in $pydir/*.py; do -- cgit v1.2.3