From ded2ca77772d8b2cb9ada3ea33e70e11bbf92150 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 13 Dec 2018 18:49:13 -0500 Subject: pydist.sh: properly detect presence of .py scripts in a specific directory. --- project/pydist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'project/pydist.sh') 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:]") -- cgit v1.2.3