Check-in [03c2fc0a5c]

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

Overview
Comment:Fix symlinks after manpage compression
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:03c2fc0a5c9eedaf9bf1d5173bf4c582898c5e3c
User & Date: bapt 2012-06-25 21:39:34
Context
2012-06-25
21:43
Fix symlinke after uncompressing Leaf check-in: 1962699c1c user: bapt tags: trunk
21:39
Fix symlinks after manpage compression check-in: 03c2fc0a5c user: bapt tags: trunk
15:15
- use compact test syntax

Submitted by ak@ check-in: 39db7148d8 user: bapt tags: trunk

Changes

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

  5919   5919   .endif
  5920   5920   .if defined(NO_MANCOMPRESS)
  5921   5921   	@${ECHO_MSG} "===>   Uncompressing manual pages for ${PKGNAME}"
  5922   5922   	@${FIND} ${STAGEDIR}/${MANPREFIX}/man -type f -name "*.gz" -exec ${GUNZIP_CMD} {} \; || ${TRUE}
  5923   5923   .else
  5924   5924   	@${ECHO_MSG} "===>   Compressing manual pages for ${PKGNAME}"
  5925   5925   	@${FIND} ${STAGEDIR}/${MANPREFIX}/man -type f -name "*.[0-9]" -exec ${GZIP_CMD} -9 {} \; || ${TRUE}
         5926  +	@cd ${STAGEDIR}; ${FIND} -L ./${MANPREFIX}/man -type l | while read link; do \
         5927  +	dest=`readlink $${link}`; \
         5928  +	cd $${link%/*} ; \
         5929  +	ln -fs $${dest##*/}.gz $${link##*/}.gz ; \
         5930  +	cd ${STAGEDIR} ;\
         5931  +	done
  5926   5932   .endif
  5927   5933   .endif
  5928   5934   
  5929   5935   # Fake installation of package so that user can pkg_delete it later.
  5930   5936   # Also, make sure that an installed port is recognized correctly in
  5931   5937   # accordance to the @pkgdep directive in the packing lists
  5932   5938