diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-06-18 13:12:52 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:45:55 -0500 |
commit | 9eb45e211cbc28bbd28837a17dcec3df29d6f455 (patch) | |
tree | 71f9e6f5b58a5128d7924402e91de7b7649202e1 /docs/smbdotconf | |
parent | 2fb5f5f740cbc3128f7e57ab9cee3f85c77bb56f (diff) | |
download | samba-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')
-rwxr-xr-x | docs/smbdotconf/generate-file-list.sh | 8 |
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 |