1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/docs/smbdotconf/generate-file-list.sh
Jelmer Vernooij 55316b37e1 Fix smb.conf.5 build
(This used to be commit 643f25c8bf)
2008-04-23 08:45:56 -05:00

20 lines
318 B
Bash
Executable File

#!/bin/sh
DIR=.
if [ "x$1" != "x" ]
then
DIR="$1"
fi
OLD=`pwd`
cd $DIR
echo "<variablelist xmlns:xi=\"http://www.w3.org/2003/XInclude\">"
for I in `find . -type f -name '*.xml' -mindepth 2 | sort -t/ -k3 | xargs`
do
echo "<xi:include href='$I' parse='xml'/>"
done
echo "</variablelist>"
cd $OLD