Rename files that have apostrophes in their name. Fixes problems with

pkg_install (which cannot handle such names properly).  Bump PKGREVISION to 1.
This commit is contained in:
jmmv 2003-12-28 16:15:09 +00:00
parent ae81d5d620
commit b5c7bd8e1b
2 changed files with 26 additions and 4 deletions

View file

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.12 2003/12/21 10:01:12 jmmv Exp $
# $NetBSD: Makefile,v 1.13 2003/12/28 16:15:09 jmmv Exp $
#
DISTNAME= docbook-xsl-1.64.1
PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=docbook/}
@ -23,6 +24,27 @@ XSLMODS= common extensions fo html htmlhelp images javahelp \
XML_CATALOGS= ${XSLDIR}/catalog
FIX_APOS= doc/html/htmlhelp.hhp.windows\'.html
FIX_APOS+= doc/html/htmlhelp.show.toolbar.text\'.html
SUBST_CLASSES+= fix-apos
SUBST_STAGE.fix-apos= post-patch
SUBST_MESSAGE.fix-apos= "Fixing references to files with apostrophes in names."
SUBST_FILES.fix-apos= ${FIX_APOS:H:u:S/$/\/*/}
SUBST_SED.fix-apos=
.for f in ${FIX_APOS}
SUBST_SED.fix-apos+= -e "s|${f:T}|${f:T:S/\'/.apos/g}|g"
.endfor
post-extract:
.for f in ${FIX_APOS}
${MV} ${WRKSRC}/${f} ${WRKSRC}/${f:S/\'/.apos/g}
.endfor
.undef f
post-patch:
${FIND} ${WRKSRC} -name "*.subst.sav" -printx | ${XARGS} ${RM}
do-install:
${INSTALL_DATA_DIR} ${DOCDIR}
cd ${WRKSRC}/doc && ${PAX} -rw -pp -pm . ${DOCDIR}

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.8 2003/12/21 10:01:12 jmmv Exp $
@comment $NetBSD: PLIST,v 1.9 2003/12/28 16:15:09 jmmv Exp $
share/doc/docbook-xsl/ChangeLog
share/doc/docbook-xsl/book.xsl
share/doc/docbook-xsl/ch01s02.html
@ -469,14 +469,14 @@ share/doc/docbook-xsl/html/htmlhelp.hhk.html
share/doc/docbook-xsl/html/htmlhelp.hhp.html
share/doc/docbook-xsl/html/htmlhelp.hhp.tail.html
share/doc/docbook-xsl/html/htmlhelp.hhp.window.html
share/doc/docbook-xsl/html/htmlhelp.hhp.windows'.html
share/doc/docbook-xsl/html/htmlhelp.hhp.windows.apos.html
share/doc/docbook-xsl/html/htmlhelp.map.file.html
share/doc/docbook-xsl/html/htmlhelp.only.html
share/doc/docbook-xsl/html/htmlhelp.remember.window.position.html
share/doc/docbook-xsl/html/htmlhelp.show.advanced.search.html
share/doc/docbook-xsl/html/htmlhelp.show.favorities.html
share/doc/docbook-xsl/html/htmlhelp.show.menu.html
share/doc/docbook-xsl/html/htmlhelp.show.toolbar.text'.html
share/doc/docbook-xsl/html/htmlhelp.show.toolbar.text.apos.html
share/doc/docbook-xsl/html/htmlhelp.title.html
share/doc/docbook-xsl/html/htmlhelp.use.hhk.html
share/doc/docbook-xsl/html/htmlhelp.window.geometry.html