>From 57832312e6527b596089041b88b11b3f5b38f8c8 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Fri, 28 Nov 2014 10:47:49 -0500 Subject: [PATCH 3/3] prep_texlive: group enable/disable commands in calls to updmap In postinstall scripts we remove the updmap calls completely and instead create a file of commands in a marker directory, to be run by a perpetual postinstall script. In preremove scripts we just group the commands into a single call to updmap, since setup.exe doesn't yet support perpetual preremove scripts. --- lib/src_postinst.cygpart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/src_postinst.cygpart b/lib/src_postinst.cygpart index 33cdd36..a715bc5 100644 --- a/lib/src_postinst.cygpart +++ b/lib/src_postinst.cygpart @@ -338,19 +338,19 @@ __prep_texlive() { if [ -n "${maps#0}" ] then + cat >> ${D}/etc/preremove/${PN}.sh <<-_EOF + /usr/bin/updmap-sys --nohash --nomkmap \\ + _EOF for map in $maps do - cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF - /usr/bin/updmap-sys --nohash --nomkmap --enable $map - _EOF cat >> ${D}/etc/preremove/${PN}.sh <<-_EOF - /usr/bin/updmap-sys --nohash --nomkmap --disable ${map#*=} + --disable ${map#*=} \\ + _EOF + cat >> ${D}${markerdir}/${PN}.map <<-_EOF + --enable $map _EOF done - cat >> ${D}/etc/postinstall/${PN}.sh <<-_EOF - /usr/bin/updmap-sys --nohash --syncwithtrees - /usr/bin/updmap-sys --nohash - _EOF + echo >> ${D}/etc/preremove/${PN}.sh fi if [ -n "${fmts#0}" ] then -- 2.1.4