From 221a01197cddd3af16ba8bbb95508cf38c99e117 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Tue, 13 Sep 1994 02:21:03 +0000 Subject: [PATCH] Don't be so aggressive when installing examples. We still delete the directories or links before we install the new things, but now we don't delete /usr/share/examples itself, so other examples installed from other places in the tree will not be touched. --- share/examples/Makefile | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/share/examples/Makefile b/share/examples/Makefile index 1653527baad6..60e78b617f18 100644 --- a/share/examples/Makefile +++ b/share/examples/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.3 1994/08/19 20:43:42 wollman Exp $ +# $Id: Makefile,v 1.4 1994/08/28 17:21:36 bde Exp $ # # Doing a make install builds /usr/share/examples @@ -16,21 +16,16 @@ beforeinstall: ${SHARED} copies: @${ECHO} installing ${DESTDIR}/usr/share/examples - @rm -rf ${DESTDIR}/usr/share/examples - @-mkdir ${DESTDIR}/usr/share/examples - @tar cf - ${DIRS} | \ - (cd ${DESTDIR}/usr/share/examples; tar xpfB -); - @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples - @chmod -R a-w ${DESTDIR}/usr/share/examples + @-for a in ${DIRS}; do \ + rm -rf ${DESTDIR}/usr/share/examples/$$a; \ + cp =rp $$a ${DESTDIR}/usr/share/examples; \ + done symlinks: @${ECHO} installing symlinks in ${DESTDIR}/usr/share/examples - @rm -rf ${DESTDIR}/usr/share/examples - @-mkdir ${DESTDIR}/usr/share/examples @-for a in ${DIRS}; do \ + rm -rf ${DESTDIR}/usr/share/examples/$$a; \ ln -s ${.CURDIR}/$$a ${DESTDIR}/usr/share/examples; \ done - @chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples - @chmod -R a-w ${DESTDIR}/usr/share/examples .include