diff options
author | Nik Clayton <nik@FreeBSD.org> | 1999-08-26 19:42:13 +0000 |
---|---|---|
committer | Nik Clayton <nik@FreeBSD.org> | 1999-08-26 19:42:13 +0000 |
commit | 5d61c67118a4732dc50ccbff611f70872b654480 (patch) | |
tree | 43892907e95073e7bfae9a84dea3e8cbdd0ae1ed | |
parent | 816f75506cc30f447544e32823afbadf51480ae2 (diff) | |
download | doc-5d61c67118a4732dc50ccbff611f70872b654480.tar.gz doc-5d61c67118a4732dc50ccbff611f70872b654480.zip |
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" :-)
Notes
Notes:
svn path=/head/; revision=5453
-rw-r--r-- | en_US.ISO8859-1/Makefile | 5 | ||||
-rw-r--r-- | en_US.ISO_8859-1/Makefile | 5 | ||||
-rw-r--r-- | es_ES.ISO8859-1/Makefile | 5 | ||||
-rw-r--r-- | es_ES.ISO_8859-1/Makefile | 5 | ||||
-rw-r--r-- | ja_JP.eucJP/Makefile | 5 | ||||
-rw-r--r-- | ru_RU.KOI8-R/Makefile | 5 | ||||
-rw-r--r-- | zh_TW.Big5/Makefile | 5 |
7 files changed, 14 insertions, 21 deletions
diff --git a/en_US.ISO8859-1/Makefile b/en_US.ISO8859-1/Makefile index 6debd4bfa4..8754be5033 100644 --- a/en_US.ISO8859-1/Makefile +++ b/en_US.ISO8859-1/Makefile @@ -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 diff --git a/en_US.ISO_8859-1/Makefile b/en_US.ISO_8859-1/Makefile index 6debd4bfa4..8754be5033 100644 --- a/en_US.ISO_8859-1/Makefile +++ b/en_US.ISO_8859-1/Makefile @@ -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 diff --git a/es_ES.ISO8859-1/Makefile b/es_ES.ISO8859-1/Makefile index ce65b21d12..3c72a04df6 100644 --- a/es_ES.ISO8859-1/Makefile +++ b/es_ES.ISO8859-1/Makefile @@ -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 diff --git a/es_ES.ISO_8859-1/Makefile b/es_ES.ISO_8859-1/Makefile index ce65b21d12..3c72a04df6 100644 --- a/es_ES.ISO_8859-1/Makefile +++ b/es_ES.ISO_8859-1/Makefile @@ -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 diff --git a/ja_JP.eucJP/Makefile b/ja_JP.eucJP/Makefile index 8eb19d78ff..1d977e142d 100644 --- a/ja_JP.eucJP/Makefile +++ b/ja_JP.eucJP/Makefile @@ -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 diff --git a/ru_RU.KOI8-R/Makefile b/ru_RU.KOI8-R/Makefile index 24ce20f2ba..20aa9a0164 100644 --- a/ru_RU.KOI8-R/Makefile +++ b/ru_RU.KOI8-R/Makefile @@ -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 diff --git a/zh_TW.Big5/Makefile b/zh_TW.Big5/Makefile index 1874aba5e0..331ec2b7c9 100644 --- a/zh_TW.Big5/Makefile +++ b/zh_TW.Big5/Makefile @@ -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 |