summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-26 10:05:55 +0000
committerache <ache@FreeBSD.org>1995-10-26 10:05:55 +0000
commitf87e0570b695345b80ac8b86599c866ce6473317 (patch)
treec35ed6a85550dff8ceeab7c8c6e8ffdeb633fb89
parentb31d8ebe25bf2280c4a309d28a22547a5cf9536b (diff)
downloadFreeBSD-src-f87e0570b695345b80ac8b86599c866ce6473317.zip
FreeBSD-src-f87e0570b695345b80ac8b86599c866ce6473317.tar.gz
Add test for symlink presence before remove it
-rw-r--r--etc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 35f247d..7dd3f6b 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -1,5 +1,5 @@
# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
-# $Id: Makefile,v 1.121 1995/10/22 00:38:13 ache Exp $
+# $Id: Makefile,v 1.122 1995/10/22 21:26:52 ache Exp $
# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
# -rw-r--r--
@@ -448,7 +448,7 @@ distrib-dirs:
then \
cd ${DESTDIR}/usr/share/locale; \
for l in ${LATIN1LINKS} ; do \
- rm -f $$l.ISO_8859-1; \
+ [ -h $$l.ISO_8859-1 ] && rm $$l.ISO_8859-1; \
done; \
fi
mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
OpenPOWER on IntegriCloud