From: Sergey Matveev Date: Fri, 16 Jul 2021 07:33:13 +0000 (+0300) Subject: find -exec optimization X-Git-Tag: 9.1~8 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=7d46c409b2bbdc2d0cfbce447e39a51af50932ee find -exec optimization --- diff --git a/doc/build.log.do b/doc/build.log.do index adaebf6..76ab32d 100644 --- a/doc/build.log.do +++ b/doc/build.log.do @@ -3,5 +3,5 @@ html=_build/html PYTHONPATH=.. ${PYTHON:=python} -msphinx . $html [ -d download ] && cp -r download $html || echo No download directory, skipping rm -r $html/.doctrees $html/.buildinfo -find $html -type d -exec chmod 755 {} \; -find $html -type f -exec chmod 644 {} \; +find $html -type d -exec chmod 755 {} + +find $html -type f -exec chmod 644 {} + diff --git a/makedist.sh b/makedist.sh index f2f4c37..aaf7fb9 100755 --- a/makedist.sh +++ b/makedist.sh @@ -21,8 +21,8 @@ mv -v $tmp/termcolor-*/termcolor.py $tmp/pyderasn-"$release" pip_hash=$(pip hash dist/pyderasn-"$release".tar.gz | sed -n '$p') cd $tmp -find . -type d -exec chmod 755 {} \; -find . -type f -exec chmod 644 {} \; +find . -type d -exec chmod 755 {} + +find . -type f -exec chmod 644 {} + chmod 755 pyderasn-"$release"/pyderasn.py tar cvf pyderasn-"$release".tar --uid=0 --gid=0 --numeric-owner pyderasn-"$release" zstd -19 -v pyderasn-"$release".tar