Attached.  Related to thread:
http://thread.gmane.org/gmane.os.openbsd.tech/31923

--
Dios, gracias por tu amor infinito.
-- Vladimir Támara Patiño. http://vtamara.pasosdeJesus.org/
 http://www.pasosdejesus.org/dominio_publico_colombia.html

Index: Makefile
===================================================================
RCS file: /cvs/src/share/locale/ctype/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    16 Jul 2011 21:33:30 -0000      1.6
+++ Makefile    15 May 2013 21:12:50 -0000
@@ -293,7 +293,6 @@ LOCALESRCS+=        ${LOCALESRC_${locale}}
 .endfor
 CLEANFILES+=   ${LOCALES:S/$/.out/g}
 
-# TODO: more use of symlinks?
 FILES= ${LOCALES:S/$/.out/g}
 .for locale in ${LOCALES}
 FILESDIR_${locale}.out=        ${LOCALEDIR}/${locale}
@@ -304,14 +303,21 @@ install:
 .for locale in ${LOCALES}
        install -o ${LOCALEOWN} -g ${LOCALEGRP} -m ${DIRMODE} -d \
            ${DESTDIR}${LOCALEDIR}/${locale}
-       install -o ${LOCALEOWN} -g ${LOCALEGRP} -m ${LOCALEMODE} \
-           ${locale}.out ${DESTDIR}${LOCALEDIR}/${locale}/LC_CTYPE
+       if (test "${LOCALESRC_${locale}:S/ISO_/ISO/g:S/DIS_/ISO/g}" != 
"${locale}") then { \
+               ln -fs 
../${LOCALESRC_${locale}:S/ISO_/ISO/g:S/DIS_/ISO/g}/LC_CTYPE 
${DESTDIR}${LOCALEDIR}/${locale}/LC_CTYPE; \
+       } else { \
+               install -o ${LOCALEOWN} -g ${LOCALEGRP} -m ${LOCALEMODE} \
+               ${locale}.out ${DESTDIR}${LOCALEDIR}/${locale}/LC_CTYPE; \
+       } fi;
+
 .endfor
 
 .for locale in ${LOCALES}
 ${locale}.out: ${LOCALESRC_${locale}}.src
-       ${CPP} -I${.CURDIR} < ${.CURDIR}/${LOCALESRC_${locale}}.src | \
-           sed -e '/^#/d' | mklocale -o ${.TARGET}
+       if (test "${LOCALESRC_${locale}:S/ISO_/ISO/g:S/DIS_/ISO/g}" = 
"${locale}") then { \
+               ${CPP} -I${.CURDIR} < ${.CURDIR}/${LOCALESRC_${locale}}.src | \
+           sed -e '/^#/d' | mklocale -o ${.TARGET}; \
+       } fi;
 .endfor
 
 .SUFFIXES: .src .out

Reply via email to