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 11:51:05 -0500 |
commit | ff4be475f981ec88cba364cceb4851e35c42bd30 (patch) | |
tree | 5df48b4abae16be5a3ae83d2b5380c6ad54f30e3 | |
parent | 0b9cfaf7758a86b53453cc19abe802aa09cf00d7 (diff) | |
download | samba-ff4be475f981ec88cba364cceb4851e35c42bd30.tar.gz samba-ff4be475f981ec88cba364cceb4851e35c42bd30.tar.xz samba-ff4be475f981ec88cba364cceb4851e35c42bd30.zip |
Support running from a different directory
-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 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 "<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 |