Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/share/mk pullup 1.53 -> 1.55 (approved by releng-1-5)



details:   https://anonhg.NetBSD.org/src/rev/e5a741c0c039
branches:  netbsd-1-5
changeset: 489102:e5a741c0c039
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun Aug 13 18:20:54 2000 +0000

description:
pullup 1.53 -> 1.55 (approved by releng-1-5)

when install hard link for MLINKS, test timestamps, not $UPDATE.
without this change, "make install UPDATE=YES" will leave obsolete MLINKS
behind.

1.53 -> 1.54
 > do not test $UPDATE nor file existence, on "MLINKS" installation.
 > the check will leave original manpage and linked manpage unsynchronized,
 > as we use hard link instead of symlinks.
 >
 > this backs out 1.37 -> 1.38 change.

1.54 -> 1.55
 > MLINK optimization based on timestamp.

diffstat:

 share/mk/bsd.man.mk |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r dcc4695be6b4 -r e5a741c0c039 share/mk/bsd.man.mk
--- a/share/mk/bsd.man.mk       Sun Aug 13 17:52:42 2000 +0000
+++ b/share/mk/bsd.man.mk       Sun Aug 13 18:20:54 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.man.mk,v 1.53 2000/06/06 09:22:02 mycroft Exp $
+#      $NetBSD: bsd.man.mk,v 1.53.2.1 2000/08/13 18:20:54 itojun Exp $
 #      @(#)bsd.man.mk  8.1 (Berkeley) 6/8/93
 
 .if !target(__initialized__)
@@ -119,9 +119,9 @@
                shift; \
                dir=${DESTDIR}${MANDIR}/cat$${name##*.}; \
                t=$${dir}${MANSUBDIR}/$${name%.*}.0${MCOMPRESSSUFFIX}; \
-               if [ -z "${UPDATE}" -o ! -f $$t ]; then \
-                   echo $$t -\> $$l; \
-                   ln -f $$l $$t; \
+               if test $$l -nt $$t -o ! -f $$t; then \
+                       echo $$t -\> $$l; \
+                       ln -f $$l $$t; \
                fi; \
        done
 .endif
@@ -141,9 +141,9 @@
                shift; \
                dir=${DESTDIR}${MANDIR}/man$${name##*.}; \
                t=$${dir}${MANSUBDIR}/$${name}${MCOMPRESSSUFFIX}; \
-               if [ -z "${UPDATE}" -o ! -f $$t ]; then \
-                   echo $$t -\> $$l; \
-                   ln -f $$l $$t; \
+               if test $$l -nt $$t -o ! -f $$t; then \
+                       echo $$t -\> $$l; \
+                       ln -f $$l $$t; \
                fi; \
        done
 .endif



Home | Main Index | Thread Index | Old Index