summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/docs/installdocs.sh
blob: 6cc7b74ad519497ec4d4eaa83886d880239a8649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# install ldb docs
# tridge@samba.org August 2006

MANDIR="$1"

MAN1="`/bin/ls man/*.1`"
MAN3="`/bin/ls man/*.3`"

if [ -z "$MAN1" ] && [ -z "$MAN3" ]; then
    echo "No manpages have been built"
    exit 0
fi

mkdir -p "$MANDIR/man1" "$MANDIR/man3" 
cp $MAN1 "$MANDIR/man1/" || exit 1
cp $MAN3 "$MANDIR/man3/" || exit 1