mirror of
https://github.com/samba-team/samba.git
synced 2025-06-19 23:17:05 +03:00
code. Yay! This first commit copies lib/ldb/ from Samba4. A huge congratulations should go to Simo on this - he has put an enormous amount of work into ldb, and it's great to see it go into the Samba3 tree.
53 lines
1.2 KiB
Bash
Executable File
53 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# build ldb docs
|
|
# tridge@samba.org August 2006
|
|
|
|
XSLTPROC="$1"
|
|
SRCDIR="$2"
|
|
|
|
if [ -z "$XSLTPROC" ] || [ ! -x "$XSLTPROC" ]; then
|
|
echo "xsltproc not installed"
|
|
exit 0
|
|
fi
|
|
|
|
MANXSL="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
|
|
HTMLXSL="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"
|
|
|
|
mkdir -p man
|
|
|
|
for f in $SRCDIR/man/*.xml; do
|
|
base=`basename $f .xml`
|
|
out=man/"`basename $base`"
|
|
if [ ! -f "$out" ] || [ "$f" -nt "$out" ]; then
|
|
echo Processing manpage $f
|
|
$XSLTPROC --nonet -o "$out" "$MANXSL" $f
|
|
ret=$?
|
|
if [ "$ret" = "4" ]; then
|
|
echo "ignoring stylesheet error 4 for $MANXSL"
|
|
exit 0
|
|
fi
|
|
if [ "$ret" != "0" ]; then
|
|
echo "xsltproc failed with error $ret"
|
|
exit $ret
|
|
fi
|
|
fi
|
|
done
|
|
|
|
for f in $SRCDIR/man/*.xml; do
|
|
base=`basename $f .xml`
|
|
out=man/"`basename $base`".html
|
|
if [ ! -f "$out" ] || [ "$f" -nt "$out" ]; then
|
|
echo Processing html $f
|
|
$XSLTPROC --nonet -o "$out" "$HTMLXSL" $f
|
|
ret=$?
|
|
if [ "$ret" = "4" ]; then
|
|
echo "ignoring stylesheet error 4 for $HTMLXSL"
|
|
exit 0
|
|
fi
|
|
if [ "$ret" != "0" ]; then
|
|
echo "xsltproc failed with error $ret"
|
|
exit $ret
|
|
fi
|
|
fi
|
|
done
|