summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdocs/smbdotconf/generate-file-list.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/smbdotconf/generate-file-list.sh b/docs/smbdotconf/generate-file-list.sh
index d50d77d76d..179fb8df8c 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 "<variablelist>"
-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 "<xi:include href='$I' parse='xml'/>"
done