diff --git a/docs/smbdotconf/generate-file-list.sh b/docs/smbdotconf/generate-file-list.sh index d50d77d76d2..179fb8df8c2 100755 --- a/docs/smbdotconf/generate-file-list.sh +++ b/docs/smbdotconf/generate-file-list.sh @@ -1,6 +1,12 @@ #!/bin/sh +DIR=. +if [ "x$1" != "x" ] +then + DIR="$1" +fi + echo "" -for I in `find . -type f -name '*.xml' -mindepth 2 | sort -t/ -k3 | xargs` +for I in `find $DIR -type f -name '*.xml' -mindepth 2 | sort -t/ -k3 | xargs` do echo "" done