summaryrefslogtreecommitdiff
path: root/docs/smbdotconf/generate-file-list.sh
blob: 089733246316f99d5281b763489e32c205a0f387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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