From: Frank Lichtenheld Date: Fri, 15 Feb 2008 01:01:26 +0000 (+0100) Subject: index_pages: Optimise find call by using -maxdepth X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=d11632f3d3ce5a05875fd666c2d451172264ff8e;hp=5f8ee583323112914d5f63f5755213a979123c51;p=deb%2Fpackages.git index_pages: Optimise find call by using -maxdepth This avoids having to search all of changelogs/ --- diff --git a/cron.d/900index_pages b/cron.d/900index_pages index dddbdcd..e22586d 100755 --- a/cron.d/900index_pages +++ b/cron.d/900index_pages @@ -12,21 +12,6 @@ date ./bin/create_index_pages date -# for file in $(find www/ -name *.slices) -# do -# dir=$(dirname $file) -# base=$(basename $file .slices) -# target= -# for l in $polangs -# do -# lu=$(echo $l|tr /a-z/ /A-Z/) -# target="$target -o ${lu}uUNDEF:$dir/$base.$l.html.tmp" -# done - -# echo slice $target $file -# slice $target $file -# done - -./bin/trivial_slice en $polangs -- $(find "$htmldir" -name "*.slices") +./bin/trivial_slice en $polangs -- $(find "$htmldir" -maxdepth 4 -name "*.slices") date