aboutsummaryrefslogtreecommitdiff
path: root/share/info
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-01-12 07:23:58 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-01-12 07:23:58 +0000
commit4d1680b45236efc6f92ef081f8ad934c8d2d8f09 (patch)
tree197e8832661747278fa6f9a1a5be4cf7a86474b9 /share/info
parent076bf094bcd7e8569a30e33ec4e86e05eec3a060 (diff)
downloadsrc-4d1680b45236efc6f92ef081f8ad934c8d2d8f09.tar.gz
src-4d1680b45236efc6f92ef081f8ad934c8d2d8f09.zip
Make this slightly less bogus. I'm not 100% sure what is correct here,
but replacing the "dir" file unconditionally isn't it. During the course of development, if .info files go away from the sources, nothing removes them from /usr/share/info, this is the same as system binaries etc. Removing the entire index isn't helpful, because you've got to reinstall the entire tree to get it back again. bsd.info.mk has a reference to /usr/share/info/dir-tmpl, I wonder if it once created dir if needed?
Notes
Notes: svn path=/head/; revision=21592
Diffstat (limited to 'share/info')
-rw-r--r--share/info/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/info/Makefile b/share/info/Makefile
index 95909724d05d..0360a58be245 100644
--- a/share/info/Makefile
+++ b/share/info/Makefile
@@ -5,6 +5,11 @@ NOOBJ= noobj
all clean cleandir depend lint tags:
beforeinstall:
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 dir-tmpl ${DESTDIR}${BINDIR}/info/dir
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 dir-tmpl \
+ ${DESTDIR}${BINDIR}/info/dir-tmpl
+ if [ ! -f ${DESTDIR}${BINDIR}/info/dir ]; then \
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 dir-tmpl \
+ ${DESTDIR}${BINDIR}/info/dir ; \
+ fi
.include <bsd.prog.mk>