When making the compatability symlink, do it in the parent directory
to both directories, and make it relative, rather than absolute. This fixes the case where you might install the docs under one directory /foo/bar/..., and then want to migrate them elsewhere (to /usr/share/). With the old scheme, the symlink would start /foo/bar/..., and would therefore be broken. A good example of this happening is "make release" :-)
This commit is contained in:
parent
816f75506c
commit
5d61c67118
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=5453
7 changed files with 14 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.3 1999-08-19 20:35:53 nik Exp $
|
||||
# $Id: Makefile,v 1.4 1999-08-26 19:42:10 nik Exp $
|
||||
|
||||
SUBDIR = articles
|
||||
SUBDIR+= books
|
||||
|
@ -12,8 +12,7 @@ afterinstall:
|
|||
.if !defined(IGNORE_COMPAT_SYMLINK)
|
||||
if [ ! -e ${DOCDIR}/${COMPAT_SYMLINK} ]; then \
|
||||
rm -rf ${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
ln -s ${DOCDIR}/en_US.ISO_8859-1 \
|
||||
${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
(cd ${DOCDIR} && ln -s en_US.ISO_8859-1 ${COMPAT_SYMLINK}); \
|
||||
fi
|
||||
.endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.3 1999-08-19 20:35:53 nik Exp $
|
||||
# $Id: Makefile,v 1.4 1999-08-26 19:42:10 nik Exp $
|
||||
|
||||
SUBDIR = articles
|
||||
SUBDIR+= books
|
||||
|
@ -12,8 +12,7 @@ afterinstall:
|
|||
.if !defined(IGNORE_COMPAT_SYMLINK)
|
||||
if [ ! -e ${DOCDIR}/${COMPAT_SYMLINK} ]; then \
|
||||
rm -rf ${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
ln -s ${DOCDIR}/en_US.ISO_8859-1 \
|
||||
${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
(cd ${DOCDIR} && ln -s en_US.ISO_8859-1 ${COMPAT_SYMLINK}); \
|
||||
fi
|
||||
.endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.4 1999-08-19 20:35:57 nik Exp $
|
||||
# $Id: Makefile,v 1.5 1999-08-26 19:42:11 nik Exp $
|
||||
|
||||
SUBDIR = books
|
||||
|
||||
|
@ -11,8 +11,7 @@ afterinstall:
|
|||
.if !defined(IGNORE_COMPAT_SYMLINK)
|
||||
if [ ! -e ${DOCDIR}/${COMPAT_SYMLINK} ]; then \
|
||||
rm -rf ${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
ln -s ${DOCDIR}/es_ES.ISO_8859-1 \
|
||||
${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
(cd ${DOCDIR} && ln -s es_ES.ISO_8859-1 ${COMPAT_SYMLINK}); \
|
||||
fi
|
||||
.endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.4 1999-08-19 20:35:57 nik Exp $
|
||||
# $Id: Makefile,v 1.5 1999-08-26 19:42:11 nik Exp $
|
||||
|
||||
SUBDIR = books
|
||||
|
||||
|
@ -11,8 +11,7 @@ afterinstall:
|
|||
.if !defined(IGNORE_COMPAT_SYMLINK)
|
||||
if [ ! -e ${DOCDIR}/${COMPAT_SYMLINK} ]; then \
|
||||
rm -rf ${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
ln -s ${DOCDIR}/es_ES.ISO_8859-1 \
|
||||
${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
(cd ${DOCDIR} && ln -s es_ES.ISO_8859-1 ${COMPAT_SYMLINK}); \
|
||||
fi
|
||||
.endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.7 1999-08-19 20:35:58 nik Exp $
|
||||
# $Id: Makefile,v 1.8 1999-08-26 19:42:11 nik Exp $
|
||||
|
||||
SUBDIR = books
|
||||
SUBDIR+= man
|
||||
|
@ -13,8 +13,7 @@ afterinstall:
|
|||
.if !defined(IGNORE_COMPAT_SYMLINK)
|
||||
if [ ! -e ${DOCDIR}/${COMPAT_SYMLINK} ]; then \
|
||||
rm -rf ${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
ln -s ${DOCDIR}/ja \
|
||||
${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
(cd ${DOCDIR} && ln -s ja ${COMPAT_SYMLINK}); \
|
||||
fi
|
||||
.endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.3 1999-08-19 20:36:00 nik Exp $
|
||||
# $Id: Makefile,v 1.4 1999-08-26 19:42:12 nik Exp $
|
||||
|
||||
SUBDIR = FAQ
|
||||
|
||||
|
@ -18,8 +18,7 @@ afterinstall:
|
|||
.if !defined(IGNORE_COMPAT_SYMLINK)
|
||||
if [ ! -e ${DOCDIR}/${COMPAT_SYMLINK} ]; then \
|
||||
rm -rf ${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
ln -s ${DOCDIR}/ru_SU.KOI8-R \
|
||||
${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
(cd ${DOCDIR} && ln -s ru_RU.KOI8-R ${COMPAT_SYMLINK}); \
|
||||
fi
|
||||
.endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile,v 1.3 1999-08-19 20:36:02 nik Exp $
|
||||
# $Id: Makefile,v 1.4 1999-08-26 19:42:13 nik Exp $
|
||||
|
||||
SUBDIR = books
|
||||
|
||||
|
@ -11,8 +11,7 @@ afterinstall:
|
|||
.if !defined(IGNORE_COMPAT_SYMLINK)
|
||||
if [ ! -e ${DOCDIR}/${COMPAT_SYMLINK} ]; then \
|
||||
rm -rf ${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
ln -s ${DOCDIR}/zh_TW.Big5 \
|
||||
${DOCDIR}/${COMPAT_SYMLINK}; \
|
||||
(cd ${DOCDIR} && ln -s zh_TW.Big5 ${COMPAT_SYMLINK}); \
|
||||
fi
|
||||
.endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue