]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
find -exec optimization
authorSergey Matveev <stargrave@stargrave.org>
Fri, 16 Jul 2021 07:33:13 +0000 (10:33 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 16 Jul 2021 07:33:19 +0000 (10:33 +0300)
doc/build.log.do
makedist.sh

index adaebf6fe14fd7e800261e2c30a67f066f552173..76ab32db55a77e6e8db1579a7d0c34a6f64436c7 100644 (file)
@@ -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 {} +
index f2f4c37e1fa005bf431ea6ecae303a8716a9e3a4..aaf7fb9357600225d0459185368d701cfad4ebf1 100755 (executable)
@@ -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