aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc')
-rw-r--r--textproc/aspell/pkg-plist32
-rw-r--r--textproc/docbook-430/Makefile2
-rw-r--r--textproc/docbook-xml-430/Makefile2
-rw-r--r--textproc/docbook-xml-440/Makefile4
-rw-r--r--textproc/docbook-xsl/pkg-plist2
-rw-r--r--textproc/iiimf-client-lib/pkg-plist2
-rw-r--r--textproc/iiimf-csconv/pkg-plist2
-rw-r--r--textproc/iiimf-gnome-im-switcher/pkg-plist6
-rw-r--r--textproc/iiimf-gtk/pkg-plist20
-rw-r--r--textproc/iiimf-headers/pkg-plist2
-rw-r--r--textproc/iiimf-le-unit/pkg-plist2
-rw-r--r--textproc/iiimf-protocol-lib/pkg-plist2
-rw-r--r--textproc/iiimf-server/pkg-plist4
-rw-r--r--textproc/iiimf-x-lib/pkg-plist2
-rw-r--r--textproc/jdictionary/pkg-plist.plugin2
-rw-r--r--textproc/ocaml-yaxpo/pkg-plist2
-rw-r--r--textproc/p5-Text-BibTeX/pkg-plist2
-rw-r--r--textproc/p5-YAPE-HTML/pkg-plist4
-rw-r--r--textproc/p5-YAPE-Regex-Explain/pkg-plist6
-rw-r--r--textproc/p5-YAPE-Regex/pkg-plist4
-rw-r--r--textproc/scim-table-imengine/pkg-plist8
-rw-r--r--textproc/xhtml-modularization/Makefile3
22 files changed, 57 insertions, 58 deletions
diff --git a/textproc/aspell/pkg-plist b/textproc/aspell/pkg-plist
index 5be071135b4..c741da3b0c7 100644
--- a/textproc/aspell/pkg-plist
+++ b/textproc/aspell/pkg-plist
@@ -107,19 +107,19 @@ lib/libpspell.so.16
%%NLS%%share/locale/vi/LC_MESSAGES/aspell.mo
%%NLS%%share/locale/wa/LC_MESSAGES/aspell.mo
@dirrm include/pspell
-%%NLS%%@unexec rmdir %D/share/locale/be/LC_MESSAGES 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/be 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/cs 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/pt/LC_MESSAGES 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/pt 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/rw/LC_MESSAGES 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/rw 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/ro/LC_MESSAGES 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/ro 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/sr/LC_MESSAGES 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/sr 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/tg/LC_MESSAGES 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/tg 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/uk/LC_MESSAGES 2>/dev/null || true
-%%NLS%%@unexec rmdir %D/share/locale/uk 2>/dev/null || true
+%%NLS%%@dirrmtry share/locale/be/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/be
+%%NLS%%@dirrmtry share/locale/cs/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/cs
+%%NLS%%@dirrmtry share/locale/pt/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/pt
+%%NLS%%@dirrmtry share/locale/rw/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/rw
+%%NLS%%@dirrmtry share/locale/ro/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/ro
+%%NLS%%@dirrmtry share/locale/sr/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/sr
+%%NLS%%@dirrmtry share/locale/tg/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/tg
+%%NLS%%@dirrmtry share/locale/uk/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/uk
diff --git a/textproc/docbook-430/Makefile b/textproc/docbook-430/Makefile
index 354f665f499..841521d9385 100644
--- a/textproc/docbook-430/Makefile
+++ b/textproc/docbook-430/Makefile
@@ -50,7 +50,7 @@ pre-install:
${ECHO_CMD} "${DTDDIR}/$${F}"; \
done;\
${ECHO_CMD} "@dirrm ${DTDDIR}";\
- ${ECHO_CMD} "@unexec rmdir %D/${SGMLCATBASE}/${DTD_NAME} 2> /dev/null || true"; ) > ${PLIST}
+ ${ECHO_CMD} "@dirrmtry ${SGMLCATBASE}/${DTD_NAME}"; ) > ${PLIST}
.if !defined(NOPORTDOCS)
(for F in ${DOC_FILES}; do \
${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
diff --git a/textproc/docbook-xml-430/Makefile b/textproc/docbook-xml-430/Makefile
index 905183f2fd2..5f8228456dc 100644
--- a/textproc/docbook-xml-430/Makefile
+++ b/textproc/docbook-xml-430/Makefile
@@ -52,7 +52,7 @@ pre-install:
${ECHO_CMD} "${DTDDIR}/$${F}"; \
done;\
${ECHO_CMD} "@dirrm ${DTDDIR}";\
- ${ECHO_CMD} "@unexec rmdir %D/${XMLCATBASE}/${DTD_NAME} 2> /dev/null || true"; ) >> ${PLIST}
+ ${ECHO_CMD} "@dirrmtry ${XMLCATBASE}/${DTD_NAME}"; ) >> ${PLIST}
.if !defined(NOPORTDOCS)
(for F in ${DOC_FILES}; do \
${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
diff --git a/textproc/docbook-xml-440/Makefile b/textproc/docbook-xml-440/Makefile
index 7dee7d58dcf..a0d7a73dd45 100644
--- a/textproc/docbook-xml-440/Makefile
+++ b/textproc/docbook-xml-440/Makefile
@@ -53,12 +53,12 @@ pre-install:
@${ECHO_CMD} "${DTDDIR}/${F}" >> ${PLIST}
.endfor
@${ECHO_CMD} "@dirrm ${DTDDIR}" >> ${PLIST}
- @${ECHO_CMD} "@unexec rmdir %D/${XMLCATBASE}/${DTD_NAME} 2> /dev/null || true" >> ${PLIST}
+ @${ECHO_CMD} "@dirrmtry ${XMLCATBASE}/${DTD_NAME}" >> ${PLIST}
.ifndef NOPORTDOCS
.for F in ${DOC_FILES}
@${ECHO_CMD} "${DOCSDIR:S!^${PREFIX}/!!}/${F}.${PORTVERSION}" >> ${PLIST}
.endfor
- @${ECHO_CMD} "@unexec rmdir %D/${DOCSDIR:S!^${PREFIX}/!!} 2> /dev/null || true" >> ${PLIST}
+ @${ECHO_CMD} "@dirrmtry ${DOCSDIR:S!^${PREFIX}/!!}" >> ${PLIST}
.endif
@${ECHO_CMD} "@exec ${XMLCATMGR} ${REGIST_CAT_FLAGS_XML}" >> ${PLIST}
@${ECHO_CMD} "@unexec ${XMLCATMGR} ${UNREGIST_CAT_FLAGS_XML}" >> ${PLIST}
diff --git a/textproc/docbook-xsl/pkg-plist b/textproc/docbook-xsl/pkg-plist
index edd20714f88..a98e1ca4695 100644
--- a/textproc/docbook-xsl/pkg-plist
+++ b/textproc/docbook-xsl/pkg-plist
@@ -1755,7 +1755,7 @@ share/xsl/docbook/xhtml/xref.xsl
@dirrm share/xsl/docbook/extensions
@dirrm share/xsl/docbook/common
@dirrm share/xsl/docbook
-@unexec rmdir %D/share/xsl || true
+@dirrmtry share/xsl
%%PORTDOCS%%@dirrm %%DOCSDIR%%/website
%%PORTDOCS%%@dirrm %%DOCSDIR%%/tools
%%PORTDOCS%%@dirrm %%DOCSDIR%%/template
diff --git a/textproc/iiimf-client-lib/pkg-plist b/textproc/iiimf-client-lib/pkg-plist
index ee9b429303d..2615f4bb580 100644
--- a/textproc/iiimf-client-lib/pkg-plist
+++ b/textproc/iiimf-client-lib/pkg-plist
@@ -7,4 +7,4 @@ lib/libiiimcf.so
lib/libiiimcf.la
lib/libiiimcf.a
libdata/pkgconfig/iiimf-lib-client.pc
-@unexec rmdir %D/include/iiim > /dev/null 2>&1 || true
+@dirrmtry include/iiim
diff --git a/textproc/iiimf-csconv/pkg-plist b/textproc/iiimf-csconv/pkg-plist
index 32d6596f9ba..8e58bb48973 100644
--- a/textproc/iiimf-csconv/pkg-plist
+++ b/textproc/iiimf-csconv/pkg-plist
@@ -2,4 +2,4 @@ lib/iiim/csconv/csconv.la
lib/iiim/csconv/csconv.so
lib/iiim/csconv/encoding.norm
@dirrm lib/iiim/csconv
-@unexec rmdir %D/lib/iiim > /dev/null 2>&1 || true
+@dirrmtry lib/iiim
diff --git a/textproc/iiimf-gnome-im-switcher/pkg-plist b/textproc/iiimf-gnome-im-switcher/pkg-plist
index eed25201edf..e8643cb990c 100644
--- a/textproc/iiimf-gnome-im-switcher/pkg-plist
+++ b/textproc/iiimf-gnome-im-switcher/pkg-plist
@@ -21,8 +21,8 @@ share/locale/ta/LC_MESSAGES/iiimf-im-switcher.mo
share/locale/zh_CN/LC_MESSAGES/iiimf-im-switcher.mo
share/locale/zh_TW/LC_MESSAGES/iiimf-im-switcher.mo
share/locale/zh_HK/LC_MESSAGES/iiimf-im-switcher.mo
-@unexec rmdir %D/share/locale/zh_HK/LC_MESSAGES > /dev/null 2>&1 || true
-@unexec rmdir %D/share/locale/zh_HK > /dev/null 2>&1 || true
+@dirrmtry share/locale/zh_HK/LC_MESSAGES
+@dirrmtry share/locale/zh_HK
share/icons/hicolor/48x48/apps/gnome-settings-im.png
share/gnome/pixmaps/gnome-settings-im.png
share/gnome/pixmaps/gimlet-off.png
@@ -30,7 +30,7 @@ share/gnome/pixmaps/gimlet-on.png
share/gnome/pixmaps/gimlet-disable.png
share/gnome/control-center-2.0/capplets/gnome-im-properties.desktop
share/gnome/control-center-2.0/interfaces/gnome-im-properties.glade2
-@unexec rmdir %D/share/gnome/control-center-2.0/interfaces > /dev/null 2>&1 || true
+@dirrmtry share/gnome/control-center-2.0/interfaces
share/gnome/help/imswitcher/C/legal.xml
share/gnome/help/imswitcher/C/imswitcher.xml
@dirrm share/gnome/help/imswitcher/C
diff --git a/textproc/iiimf-gtk/pkg-plist b/textproc/iiimf-gtk/pkg-plist
index 4aa08716645..ba9b38b4047 100644
--- a/textproc/iiimf-gtk/pkg-plist
+++ b/textproc/iiimf-gtk/pkg-plist
@@ -2,17 +2,17 @@ lib/gtk-2.0/2.4.0/immodules/im-iiim.so
@exec %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
@unexec %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
share/locale/ja/LC_MESSAGES/iiimgcf.mo
-@unexec rmdir %D/share/locale/ja/LC_MESSAGES > /dev/null 2>&1 || true
-@unexec rmdir %D/share/locale/ja > /dev/null 2>&1 || true
+@dirrmtry share/locale/ja/LC_MESSAGES
+@dirrmtry share/locale/ja
share/locale/ko/LC_MESSAGES/iiimgcf.mo
-@unexec rmdir %D/share/locale/ko/LC_MESSAGES > /dev/null 2>&1 || true
-@unexec rmdir %D/share/locale/ko > /dev/null 2>&1 || true
+@dirrmtry share/locale/ko/LC_MESSAGES
+@dirrmtry share/locale/ko
share/locale/zh_CN/LC_MESSAGES/iiimgcf.mo
-@unexec rmdir %D/share/locale/zh_CN/LC_MESSAGES > /dev/null 2>&1 || true
-@unexec rmdir %D/share/locale/zh_CN > /dev/null 2>&1 || true
+@dirrmtry share/locale/zh_CN/LC_MESSAGES
+@dirrmtry share/locale/zh_CN
share/locale/zh_TW/LC_MESSAGES/iiimgcf.mo
-@unexec rmdir %D/share/locale/zh_TW/LC_MESSAGES > /dev/null 2>&1 || true
-@unexec rmdir %D/share/locale/zh_TW > /dev/null 2>&1 || true
+@dirrmtry share/locale/zh_TW/LC_MESSAGES
+@dirrmtry share/locale/zh_TW
share/locale/zh_HK/LC_MESSAGES/iiimgcf.mo
-@unexec rmdir %D/share/locale/zh_HK/LC_MESSAGES > /dev/null 2>&1 || true
-@unexec rmdir %D/share/locale/zh_HK > /dev/null 2>&1 || true
+@dirrmtry share/locale/zh_HK/LC_MESSAGES
+@dirrmtry share/locale/zh_HK
diff --git a/textproc/iiimf-headers/pkg-plist b/textproc/iiimf-headers/pkg-plist
index 170f9e84f1f..c0715699d1a 100644
--- a/textproc/iiimf-headers/pkg-plist
+++ b/textproc/iiimf-headers/pkg-plist
@@ -13,4 +13,4 @@ include/iiim/iml/SunIMProt.h
include/iiim/iml/SunIMPub.h
include/iiim/iml/iml_fop.h
@dirrm include/iiim/iml
-@unexec rmdir %D/include/iiim > /dev/null 2>&1 || true
+@dirrmtry include/iiim
diff --git a/textproc/iiimf-le-unit/pkg-plist b/textproc/iiimf-le-unit/pkg-plist
index ffee886cf21..779b7bc3151 100644
--- a/textproc/iiimf-le-unit/pkg-plist
+++ b/textproc/iiimf-le-unit/pkg-plist
@@ -89,4 +89,4 @@ lib/iiim/le/unitle/AM_ET/data/amharic.data
@dirrm lib/iiim/le/unitle/AM_ET/data
@dirrm lib/iiim/le/unitle/AM_ET
@dirrm lib/iiim/le/unitle
-@unexec rmdir %D/lib/iiim/le > /dev/null 2>&1 || true
+@dirrmtry lib/iiim/le
diff --git a/textproc/iiimf-protocol-lib/pkg-plist b/textproc/iiimf-protocol-lib/pkg-plist
index c8734aec63b..fa2a456b10d 100644
--- a/textproc/iiimf-protocol-lib/pkg-plist
+++ b/textproc/iiimf-protocol-lib/pkg-plist
@@ -8,4 +8,4 @@ lib/libiiimp.so
lib/libiiimp.la
lib/libiiimp.a
libdata/pkgconfig/iiimf-lib-protocol.pc
-@unexec rmdir %D/include/iiim > /dev/null 2>&1 || true
+@dirrmtry include/iiim
diff --git a/textproc/iiimf-server/pkg-plist b/textproc/iiimf-server/pkg-plist
index a6a3bb8e50a..72dff965606 100644
--- a/textproc/iiimf-server/pkg-plist
+++ b/textproc/iiimf-server/pkg-plist
@@ -12,8 +12,8 @@ include/iiim/lexmlconf.h
share/iiim/gdbcmd
@dirrm etc/iiim
@dirrm share/iiim
-@unexec rmdir %D/lib/iiim > /dev/null 2>&1 || true
-@unexec rmdir %D/include/iiim > /dev/null 2>&1 || true
+@dirrmtry lib/iiim
+@dirrmtry include/iiim
@exec mkdir -p /var/log/iiim
@unexec rm -f /var/log/iiim/*.log
@unexec rmdir /var/log/iiim > /dev/null 2>&1 || true
diff --git a/textproc/iiimf-x-lib/pkg-plist b/textproc/iiimf-x-lib/pkg-plist
index 45fc6f1991b..55cb5c22cc1 100644
--- a/textproc/iiimf-x-lib/pkg-plist
+++ b/textproc/iiimf-x-lib/pkg-plist
@@ -2,4 +2,4 @@ lib/iiim/xiiimp.a
lib/iiim/xiiimp.la
lib/iiim/xiiimp.so
lib/iiim/xiiimp.so.2
-@unexec rmdir %D/lib/iiim > /dev/null 2>&1 || true
+@dirrmtry lib/iiim
diff --git a/textproc/jdictionary/pkg-plist.plugin b/textproc/jdictionary/pkg-plist.plugin
index 8f731b35b7c..4fcc81bb348 100644
--- a/textproc/jdictionary/pkg-plist.plugin
+++ b/textproc/jdictionary/pkg-plist.plugin
@@ -1,3 +1,3 @@
@comment $FreeBSD$
%%DATADIR%%/%%DISTNAME%%
-@unexec rmdir %D/%%DATADIR%% || true
+@dirrmtry %%DATADIR%%
diff --git a/textproc/ocaml-yaxpo/pkg-plist b/textproc/ocaml-yaxpo/pkg-plist
index d095a34279f..cb13bd02bd9 100644
--- a/textproc/ocaml-yaxpo/pkg-plist
+++ b/textproc/ocaml-yaxpo/pkg-plist
@@ -7,4 +7,4 @@ lib/ocaml/yaxpo.cmi
lib/ocaml/yaxpo.cmxa
lib/ocaml/yaxpodom.cmi
lib/ocaml/yaxposax.cmi
-@unexec rmdir %Dlib/ocaml 2>/dev/null || true
+@dirrmtry lib/ocaml
diff --git a/textproc/p5-Text-BibTeX/pkg-plist b/textproc/p5-Text-BibTeX/pkg-plist
index cb5fa428d9c..98aa299c944 100644
--- a/textproc/p5-Text-BibTeX/pkg-plist
+++ b/textproc/p5-Text-BibTeX/pkg-plist
@@ -15,5 +15,5 @@
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Text/BibTeX
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/BibTeX
@dirrmtry %%SITE_PERL%%/Text
-@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Text || true
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Text
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text
diff --git a/textproc/p5-YAPE-HTML/pkg-plist b/textproc/p5-YAPE-HTML/pkg-plist
index 7d7bb7de8af..9d6daa51d2e 100644
--- a/textproc/p5-YAPE-HTML/pkg-plist
+++ b/textproc/p5-YAPE-HTML/pkg-plist
@@ -5,5 +5,5 @@
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE
@dirrm %%SITE_PERL%%/YAPE/HTML
@dirrmtry %%SITE_PERL%%/YAPE
-@unexec rmdir %D%%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE 2>/dev/null || true
-@unexec rmdir %D%%SITE_PERL%%/YAPE 2>/dev/null || true
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE
+@dirrmtry %%SITE_PERL%%/YAPE
diff --git a/textproc/p5-YAPE-Regex-Explain/pkg-plist b/textproc/p5-YAPE-Regex-Explain/pkg-plist
index c33eece8d90..30c5e7086fc 100644
--- a/textproc/p5-YAPE-Regex-Explain/pkg-plist
+++ b/textproc/p5-YAPE-Regex-Explain/pkg-plist
@@ -2,6 +2,6 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE/Regex/Explain/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE/Regex/Explain
@dirrmtry %%SITE_PERL%%/YAPE/Regex
-@unexec rmdir %D%%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE/Regex 2>/dev/null || true
-@unexec rmdir %D%%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE 2>/dev/null || true
-@unexec rmdir %D%%SITE_PERL%%/YAPE 2>/dev/null || true
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE/Regex
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE
+@dirrmtry %%SITE_PERL%%/YAPE
diff --git a/textproc/p5-YAPE-Regex/pkg-plist b/textproc/p5-YAPE-Regex/pkg-plist
index a10e0b62383..73e06a7c8f5 100644
--- a/textproc/p5-YAPE-Regex/pkg-plist
+++ b/textproc/p5-YAPE-Regex/pkg-plist
@@ -6,5 +6,5 @@
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE
@dirrm %%SITE_PERL%%/YAPE/Regex
@dirrmtry %%SITE_PERL%%/YAPE
-@unexec rmdir %D%%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE 2>/dev/null || true
-@unexec rmdir %D%%SITE_PERL%%/YAPE 2>/dev/null || true
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/YAPE
+@dirrmtry %%SITE_PERL%%/YAPE
diff --git a/textproc/scim-table-imengine/pkg-plist b/textproc/scim-table-imengine/pkg-plist
index 5711d78a020..2702f2de285 100644
--- a/textproc/scim-table-imengine/pkg-plist
+++ b/textproc/scim-table-imengine/pkg-plist
@@ -22,10 +22,10 @@ share/locale/it/LC_MESSAGES/scim-tables.mo
%%SKIM%%share/locale/it/LC_MESSAGES/skim-scim-tables.mo
%%SKIM%%share/locale/ko/LC_MESSAGES/skim-scim-tables.mo
%%SKIM%%share/apps/skim/pics/scim-tables.png
-%%SKIM%%@unexec rmdir %D/share/apps/skim/pics 2>/dev/null || true
-%%SKIM%%@unexec rmdir %D/share/apps/skim 2>/dev/null || true
-%%SKIM%%@unexec rmdir %D/share/config.kcfg 2>/dev/null || true
-%%SKIM%%@unexec rmdir %D/share/services/skimconfiguredialog 2>/dev/null || true
+%%SKIM%%@dirrmtry share/apps/skim/pics
+%%SKIM%%@dirrmtry share/apps/skim
+%%SKIM%%@dirrmtry share/config.kcfg
+%%SKIM%%@dirrmtry share/services/skimconfiguredialog
%%SKIM%%@cwd %%X11BASE%%
@dirrmtry lib/scim-1.0/IMEngine
@dirrmtry lib/scim-1.0/SetupUI
diff --git a/textproc/xhtml-modularization/Makefile b/textproc/xhtml-modularization/Makefile
index 256f597aa3d..50c2fdbe63d 100644
--- a/textproc/xhtml-modularization/Makefile
+++ b/textproc/xhtml-modularization/Makefile
@@ -70,8 +70,7 @@ pre-install:
${ECHO} "@unexec ${SGMLCAT_RM}" >> ${PLIST}
${ECHO} "@exec ${SGMLCAT_ADD}" >> ${PLIST}
${ECHO} "@dirrm ${dir_DTD}" >> ${PLIST}
- ${ECHO} '@unexec rmdir %D/share/xml/dtd 2>/dev/null || true' >> \
- ${PLIST}
+ ${ECHO} '@dirrmtry share/xml/dtd' >> ${PLIST}
${ECHO} "@dirrm ${dir_DOC}/images" >> ${PLIST}
${ECHO} "@dirrm ${dir_DOC}" >> ${PLIST}
${ECHO} "@dirrm ${dir_TEMPLATES}" >> ${PLIST}