doc: Symlink all dafssync-debug pages
authorAndrew Deason <adeason@sinenomine.net>
Thu, 5 Sep 2013 05:48:02 +0000 (00:48 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 4 Nov 2013 20:20:06 +0000 (12:20 -0800)
For every fssync-debug subcommand, provide a symlink for the
associated dafssync-debug subcommand. This way, running e.g.
"man dafssync-debug_attach" will actually give you a manpage, instead
of needing to specifically run "man fssync-debug_attach".

Change-Id: I83d71dc14f9f838d9a9900fcc62817677898dd27
Reviewed-on: http://gerrit.openafs.org/10412
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: Derrick Brashear <shadow@your-file-system.com>

doc/man-pages/Makefile.in

index b66dc04..a511472 100644 (file)
@@ -12,6 +12,9 @@ html:
        perl generate-html
 
 LINKEDPAGES = klog pagsh tokens
+FSSYNCDEBUG_PAGES = attach callback detach error header leaveoff list mode \
+                    move offline online query stats vgcadd vgcdel vgcquery \
+                    vgcscan vgcscanall vnode volop
 
 dest:
        chmod +x install-man
@@ -26,6 +29,10 @@ dest:
        done
        test -h $(DEST)/man/man8/dafssync-debug.8 \
            || ln -s fssync-debug.8 $(DEST)/man/man8/dafssync-debug.8
+       set -e; for M in ${FSSYNCDEBUG_PAGES} ; do \
+           test -h $(DEST)/man/man8/dafssync-debug_$$M.8 \
+               || ln -s fssync-debug_$$M.8 $(DEST)/man/man8/dafssync-debug_$$M.8 ; \
+       done
        set -e; if [ -n "@ENABLE_FUSE_CLIENT@" ] ; then \
            test -h $(DEST)/man/man8/afsd.fuse.8 \
                || ln -s afsd.8 $(DEST)/man/man8/afsd.fuse.8; \
@@ -44,6 +51,10 @@ install: $(MAN1) $(MAN8)
        done
        test -h $(DESTDIR)/$(mandir)/man8/dafssync-debug.8 \
            || ln -s fssync-debug.8 $(DESTDIR)/$(mandir)/man8/dafssync-debug.8
+       set -e; for M in ${FSSYNCDEBUG_PAGES} ; do \
+           test -h $(DESTDIR)/$(mandir)/man8/dafssync-debug_$$M.8 \
+               || ln -s fssync-debug_$$M.8 $(DESTDIR)/$(mandir)/man8/dafssync-debug_$$M.8 ; \
+       done
        set -e; if [ -n "@ENABLE_FUSE_CLIENT@" ] ; then \
            test -h $(DESTDIR)$(mandir)/man8/afsd.fuse.8 \
                || ln -s afsd.8 $(DESTDIR)$(mandir)/man8/afsd.fuse.8; \