pidl/lib: Add recursion detection logic to prevent looping.
[Samba.git] / docs-xml / smbdotconf / generate-file-list.sh
blobdd981b3c4720b343f6aa3901877e71b0960b56c3
1 #!/bin/sh
3 set -e
4 echo "<!DOCTYPE section ["
5 $(dirname $0)/../generate-pathconf-entities.sh
7 echo "]>"
9 DIR=.
10 if [ "x$1" != "x" ]; then
11 DIR="$1"
14 OLD=$(pwd)
15 cd $DIR
17 echo "<section>"
18 for I in $(find . -mindepth 2 -type f -name '*.xml' | sort -t/ -k3 | xargs); do
19 cat $I
20 done
21 echo "</section>"
23 cd $OLD