summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-13 18:49:13 -0500
committermidipix <writeonce@midipix.org>2018-12-13 18:49:13 -0500
commitded2ca77772d8b2cb9ada3ea33e70e11bbf92150 (patch)
tree905d68b02a2e249c6c2d70856a7df791dc4ae7fd
parent429f97513efd44cbec86ef3e5e37d02d62391a73 (diff)
downloadsbpython2-ded2ca77772d8b2cb9ada3ea33e70e11bbf92150.tar.bz2
sbpython2-ded2ca77772d8b2cb9ada3ea33e70e11bbf92150.tar.xz
pydist.sh: properly detect presence of .py scripts in a specific directory.
-rwxr-xr-xproject/pydist.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/project/pydist.sh b/project/pydist.sh
index 27c3520..26701d0 100755
--- a/project/pydist.sh
+++ b/project/pydist.sh
@@ -41,7 +41,7 @@ cpvar=$(printf '\tcp -p $(%s:%s.py=%s.pyc)' 'PYDIST_SYSCFG_SRCS' '%' '%')
printf '%-68s$(DESTDIR)/$(LIBDIR)/$(PACKAGE)\n' "$cpvar" >> $pypycs
for pydir in $pydirs; do
- if [ $(find "$pydir" -name '*.py' | wc -l) != '0' ]; then
+ if [ $(find "$pydir" -maxdepth 1 -name '*.py' | wc -l) != '0' ]; then
pyvar=$(printf "PYDIST_%s_SRCS" $pydir \
| sed -e 's@\_\.@@g' -e 's@/@_@g' -e 's@-@_@g' \
| tr "[:lower:]" "[:upper:]")