summaryrefslogtreecommitdiff
path: root/docs/smbdotconf/generate-file-list.sh
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-06-18 13:12:52 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:45:55 -0500
commit9eb45e211cbc28bbd28837a17dcec3df29d6f455 (patch)
tree71f9e6f5b58a5128d7924402e91de7b7649202e1 /docs/smbdotconf/generate-file-list.sh
parent2fb5f5f740cbc3128f7e57ab9cee3f85c77bb56f (diff)
downloadsamba-9eb45e211cbc28bbd28837a17dcec3df29d6f455.tar.gz
samba-9eb45e211cbc28bbd28837a17dcec3df29d6f455.tar.bz2
samba-9eb45e211cbc28bbd28837a17dcec3df29d6f455.zip
Support running from a different directory
(This used to be commit ec0bbb6c2e7ccb9155d4f890cc99563453d209f2)
Diffstat (limited to 'docs/smbdotconf/generate-file-list.sh')
-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