Check-in [bbea2af6ba]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix manpage staging
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bbea2af6baf6d9cc5bd10b9322d6715f8a1a11ae
User & Date: bdrewery 2012-06-07 21:16:48
Context
2012-06-08
01:19
Fix generating .mtree check-in: 03afe96722 user: bdrewery tags: trunk
2012-06-07
21:16
Fix manpage staging check-in: bbea2af6ba user: bdrewery tags: trunk
19:46
Fix syntax error check-in: e6642fa454 user: bdrewery tags: trunk
Changes

Changes to ports/Mk/bsd.port.mk.

3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
....
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905

.for manlang in ${MANLANG:S%^%man/%:S%^man/""$%man%}

.for sect in 1 2 3 4 5 6 7 8 9 L N
# MAN${sect} is for man pages installed for all languages in MANLANG for a given
# section.
.if defined(MAN${sect})
_MANPAGES+=	${MAN${sect}:S%^%${MAN${sect}PREFIX}/${manlang}/man${sect:L}/%}
.endif

# Language specific MAN${sect} variables are for man pages installed in that
# language, but not necessarily all languages in MANLANG.
.if defined(MAN${sect}_${manlang:S%^man/%%:U})
_MANPAGES+=	${MAN${sect}_${manlang:S%^man/%%:U}:S%^%${MAN${sect}PREFIX}/${manlang}/man${sect:L}/%}
.endif

.endfor

.endfor

# Special case for English, since it is defined with "" in MANLANG rather than
# a language name and does not have man pages installed in a lang subdirectory 
# of MAN${sect}PREFIX.
.for sect in 1 2 3 4 5 6 7 8 9 L N
.if defined(MAN${sect}_EN)
_MANPAGES+=	${MAN${sect}_EN:S%^%${MAN${sect}PREFIX}/man/man${sect:L}/%}
.endif
.endfor

.if !defined(_TMLINKS)
_TMLINKS=
.endif

.if defined(_MANPAGES)

.if defined(NO_MANCOMPRESS)
__MANPAGES:=	${_MANPAGES:S%^${PREFIX}/%%}
.else
__MANPAGES:=	${_MANPAGES:S%^${PREFIX}/%%:S%$%.gz%}
.endif

.if ${MANCOMPRESSED} == "yes"
_MANPAGES:=	${_MANPAGES:S%$%.gz%}
.endif

.endif
................................................................................

# Compress (or uncompress) and symlink manpages.
.if !target(compress-man)
compress-man:
.if defined(_MANPAGES) || defined(_MLINKS)
.if ${MANCOMPRESSED} == yes && defined(NO_MANCOMPRESS)
	@${ECHO_MSG} "===>   Uncompressing manual pages for ${PKGNAME}"
	@_manpages='${_MANPAGES:S/'/'\''/g}' && [ "$${_manpages}" != "" ] && ( eval ${GUNZIP_CMD} ${STAGEDIR}$${_manpages} ) || ${TRUE}
.elif ${MANCOMPRESSED} == no && !defined(NO_MANCOMPRESS)
	@${ECHO_MSG} "===>   Compressing manual pages for ${PKGNAME}"
	@_manpages='${_MANPAGES:S/'/'\''/g}' && [ "$${_manpages}" != "" ] && ( eval ${GZIP_CMD} ${STAGEDIR}$${_manpages} ) || ${TRUE}
.endif
.if defined(_MLINKS)
	@set -- ${_MLINKS}; \
	while :; do \
		[ $$# -eq 0 ] && break || ${TRUE}; \
		${RM} -f $${2%.gz}; ${RM} -f $$2.gz; \
		${LN} -fs `${ECHO_CMD} $$1 $$2 | ${AWK} '{ \







|





|











|










|

|







 







|


|







3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
....
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905

.for manlang in ${MANLANG:S%^%man/%:S%^man/""$%man%}

.for sect in 1 2 3 4 5 6 7 8 9 L N
# MAN${sect} is for man pages installed for all languages in MANLANG for a given
# section.
.if defined(MAN${sect})
_MANPAGES+=	${MAN${sect}:S%^%${STAGEDIR}${MAN${sect}PREFIX}/${manlang}/man${sect:L}/%}
.endif

# Language specific MAN${sect} variables are for man pages installed in that
# language, but not necessarily all languages in MANLANG.
.if defined(MAN${sect}_${manlang:S%^man/%%:U})
_MANPAGES+=	${MAN${sect}_${manlang:S%^man/%%:U}:S%^%${STAGEDIR}${MAN${sect}PREFIX}/${manlang}/man${sect:L}/%}
.endif

.endfor

.endfor

# Special case for English, since it is defined with "" in MANLANG rather than
# a language name and does not have man pages installed in a lang subdirectory 
# of MAN${sect}PREFIX.
.for sect in 1 2 3 4 5 6 7 8 9 L N
.if defined(MAN${sect}_EN)
_MANPAGES+=	${MAN${sect}_EN:S%^%${STAGEDIR}${MAN${sect}PREFIX}/man/man${sect:L}/%}
.endif
.endfor

.if !defined(_TMLINKS)
_TMLINKS=
.endif

.if defined(_MANPAGES)

.if defined(NO_MANCOMPRESS)
__MANPAGES:=	${_MANPAGES:S%^${STAGEDIR}${PREFIX}/%%}
.else
__MANPAGES:=	${_MANPAGES:S%^${STAGEDIR}${PREFIX}/%%:S%$%.gz%}
.endif

.if ${MANCOMPRESSED} == "yes"
_MANPAGES:=	${_MANPAGES:S%$%.gz%}
.endif

.endif
................................................................................

# Compress (or uncompress) and symlink manpages.
.if !target(compress-man)
compress-man:
.if defined(_MANPAGES) || defined(_MLINKS)
.if ${MANCOMPRESSED} == yes && defined(NO_MANCOMPRESS)
	@${ECHO_MSG} "===>   Uncompressing manual pages for ${PKGNAME}"
	@_manpages='${_MANPAGES:S/'/'\''/g}' && [ "$${_manpages}" != "" ] && ( eval ${GUNZIP_CMD} $${_manpages} ) || ${TRUE}
.elif ${MANCOMPRESSED} == no && !defined(NO_MANCOMPRESS)
	@${ECHO_MSG} "===>   Compressing manual pages for ${PKGNAME}"
	@_manpages='${_MANPAGES:S/'/'\''/g}' && [ "$${_manpages}" != "" ] && ( eval ${GZIP_CMD} $${_manpages} ) || ${TRUE}
.endif
.if defined(_MLINKS)
	@set -- ${_MLINKS}; \
	while :; do \
		[ $$# -eq 0 ] && break || ${TRUE}; \
		${RM} -f $${2%.gz}; ${RM} -f $$2.gz; \
		${LN} -fs `${ECHO_CMD} $$1 $$2 | ${AWK} '{ \