From ded2ca77772d8b2cb9ada3ea33e70e11bbf92150 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 13 2018 23:49:13 +0000 Subject: pydist.sh: properly detect presence of .py scripts in a specific directory. --- 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:]")