summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-17 04:25:59 -0500
committermidipix <writeonce@midipix.org>2018-12-17 04:26:37 -0500
commit318354644efd3891bcca1284d94339ce08914546 (patch)
tree629a576ff7ac98e93c015c2d09fdbec981ade407 /project
parent17c5b4943b73927d0ce578bf6519ac9fcc65d9a7 (diff)
downloadsbpython2-318354644efd3891bcca1284d94339ce08914546.tar.bz2
sbpython2-318354644efd3891bcca1284d94339ce08914546.tar.xz
pydist.sh: use printf more elegantly.
Diffstat (limited to 'project')
-rwxr-xr-xproject/pydist.sh4
1 files changed, 2 insertions, 2 deletions
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