Skip site navigation (1)Skip section navigation (2)
Date:      6 Oct 1999 12:39:15 -0000
From:      nbm@rucus.ru.ac.za
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/14163: fix handbook symlink install problem with old version installed
Message-ID:  <19991006123915.33112.qmail@mithrandr.moria.org>

next in thread | raw e-mail | index | archive | help

>Number:         14163
>Category:       docs
>Synopsis:       fix handbook symlink install problem with old version installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct  6 06:30:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Neil Blakey-Milner
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Rhodes University Computer Users' Society
>Environment:

FreeBSD mithrandr.moria.org 4.0-CURRENT FreeBSD 4.0-CURRENT #2: Wed Sep 29 17:30:21 SAST 1999     root@mithrandr.moria.org:/usr/src/sys/compile/MITHRANDR  i386

>Description:

The 'symlinks' target uses rm -f to remove any already existing
symlinks; in the case of /usr/share/doc/handbook this is a directory,
not a symlink.

It should probably be rm -rf instead.

>How-To-Repeat:

mkdir /usr/share/doc/handbook
cd /usr/doc/en_US.ISO_8859-1/books && make install

>Fix:

cvs diff: Diffing .
Index: doc.subdir.mk
===================================================================
RCS file: /home/nbm/ncvs/doc/share/mk/doc.subdir.mk,v
retrieving revision 1.2
diff -u -r1.2 doc.subdir.mk
--- doc.subdir.mk	1999/09/06 06:53:39	1.2
+++ doc.subdir.mk	1999/10/06 12:34:20
@@ -106,7 +106,7 @@
 			${ECHO} "$${d}/$${l} doesn't exist, not linking"; \
 		else \
 			${ECHO} $${d}/$${t} -\> $${d}/$${l}; \
-			(cd $${d} && rm -f $${t}); \
+			(cd $${d} && rm -rf $${t}); \
 			(cd $${d} && ln -s $${l} $${t}); \
 		fi; \
 	done



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991006123915.33112.qmail>