diff options
Diffstat (limited to 'docs-xml/smbdotconf/generate-file-list.sh')
-rwxr-xr-x | docs-xml/smbdotconf/generate-file-list.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs-xml/smbdotconf/generate-file-list.sh b/docs-xml/smbdotconf/generate-file-list.sh new file mode 100755 index 0000000000..68b2abe72f --- /dev/null +++ b/docs-xml/smbdotconf/generate-file-list.sh @@ -0,0 +1,19 @@ +#!/bin/sh +DIR=. +if [ "x$1" != "x" ] +then + DIR="$1" +fi + +OLD=`pwd` +cd $DIR + +echo "<section xmlns:xi=\"http://www.w3.org/2003/XInclude\">" +for I in `find . -mindepth 2 -type f -name '*.xml' | sort -t/ -k3 | xargs` +do + echo "<xi:include href='$I' parse='xml'/>" +done + +echo "</section>" + +cd $OLD |