INN commit: trunk/doc/man (Makefile)

INN Commit Russ_Allbery at isc.org
Mon Jun 9 19:35:08 UTC 2008


    Date: Monday, June 9, 2008 @ 12:35:07
  Author: iulius
Revision: 7873

Use relative symbolic links when possible.

Modified:
  trunk/doc/man/Makefile

----------+
 Makefile |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: Makefile
===================================================================
--- Makefile	2008-06-09 18:41:22 UTC (rev 7872)
+++ Makefile	2008-06-09 19:35:07 UTC (rev 7873)
@@ -48,13 +48,21 @@
 	done
 
 # We also create symbolic links between config files and programs.
+# We try to use relative symbolic links, when possible.  As '-ef' is
+# not required by POSIX, we make absolute symbolic links before this
+# test, in case it fails.
 install-man5:
 	for M in $(SEC5) ; do \
 	    $(CP_MAN) $$M $D$(MAN5)/$$M ; \
 	done
 	rm -f $D$(MAN5)/localgroups.5 $D$(MAN5)/nocem.ctl.5
-	$(LN_S) ../man8/docheckgroups.8 $D$(MAN5)/localgroups.5
-	$(LN_S) ../man8/perl-nocem.8 $D$(MAN5)/nocem.ctl.5
+	$(LN_S) $(MAN8)/docheckgroups.8 $D$(MAN5)/localgroups.5
+	$(LN_S) $(MAN8)/perl-nocem.8 $D$(MAN5)/nocem.ctl.5
+	if [ $D$(MAN5)/../man8 -ef $D$(MAN8) ] ; then \
+	    rm -f $D$(MAN5)/localgroups.5 $D$(MAN5)/nocem.ctl.5 ; \
+	    $(LN_S) ../man8/docheckgroups.8 $D$(MAN5)/localgroups.5 ; \
+	    $(LN_S) ../man8/perl-nocem.8 $D$(MAN5)/nocem.ctl.5 ; \
+	fi
 
 # auth_krb5 is conditionally compiled, so handle it specially.  actsync(8)
 # also covers actsyncd.



More information about the inn-committers mailing list