From 318354644efd3891bcca1284d94339ce08914546 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 17 2018 09:26:37 +0000 Subject: pydist.sh: use printf more elegantly. --- 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