3 # Install man pages, but fixing up paths as we go. All of the man pages
4 # are written to use the Transarc paths, and this script fixes those paths to
5 # be correct for the chosen configure options as the man pages are installed.
12 afsbackupdir=/var/lib/openafs/backup
13 afsbosconfigdir=/etc/openafs
14 afsconfdir=/etc/openafs/server
15 afsdbdir=/var/lib/openafs/db
16 afslocaldir=/etc/openafs/server-local
17 afslogsdir=/var/log/openafs
18 afssrvlibexecdir=/usr/lib/openafs
19 viceetcdir=/etc/openafs
21 # Build a particular man page. Takes the section title, the section number,
22 # the filename of the POD page, and the output file.
24 pod2man -c "$1" -r OpenAFS -s "$2" "$3" | \
25 sed -e "s%/usr/afs/local/BosConfig%${afsbosconfigdir}/BosConfig%g" \
26 -e "s%/usr/afs/etc%${afsconfdir}%g" \
27 -e "s%/usr/afs/backup%${afsbackupdir}%g" \
28 -e "s%/usr/afs/bin%${afssrvlibexecdir}%g" \
29 -e "s%/usr/afs/db%${afsdbdir}%g" \
30 -e "s%/usr/afs/local%${afslocaldir}%g" \
31 -e "s%/usr/afs/logs%${afslogsdir}%g" \
32 -e "s%/usr/vice/etc%${viceetcdir}%g" > "$4"
35 # Create the output directories.
36 mkdir -p man1 man5 man8
38 # Do the work with lots of calls to buildpage.
41 buildpage 'AFS Command Reference' 1 "$f" \
42 ../man1/`echo "$f" | sed 's/\.pod$//'`.1
47 buildpage 'AFS File Reference' 5 "$f" \
48 ../man5/`echo "$f" | sed 's/\.pod$//'`.5
53 buildpage 'AFS Command Reference' 8 "$f" \
54 ../man8/`echo "$f" | sed 's/\.pod$//'`.8