From 7d46c409b2bbdc2d0cfbce447e39a51af50932ee Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 16 Jul 2021 10:33:13 +0300 Subject: [PATCH] find -exec optimization --- doc/build.log.do | 4 ++-- makedist.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.44.0