From d11632f3d3ce5a05875fd666c2d451172264ff8e Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Fri, 15 Feb 2008 02:01:26 +0100 Subject: [PATCH] index_pages: Optimise find call by using -maxdepth This avoids having to search all of changelogs/ --- cron.d/900index_pages | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) 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 -- 2.39.2