From: Frank Lichtenheld Date: Sat, 2 Jun 2007 00:13:09 +0000 (+0200) Subject: setup-site: Only search for files to work on two directories deep X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=f9b7f76ea7a996e9dbf07201257ef5e66bff5f9b;p=deb%2Fpackages.git setup-site: Only search for files to work on two directories deep Otherwise we will search e.g. through all the extracted changelogs for .sed.in files. --- diff --git a/bin/setup-site b/bin/setup-site index 8e720df..c277ecb 100755 --- a/bin/setup-site +++ b/bin/setup-site @@ -11,7 +11,7 @@ fi echo -e "Using\n\ttopdir=$topdir\n\tsite=$site" -find "$topdir" -name '*.sed.in' | while read file; +find "$topdir" -maxdepth 2 -name '*.sed.in' | while read file; do wdir=$(dirname "$file") newfile="$wdir/"$(basename "$file" .sed.in)