From f642dfdbbb2ad47612ebb31cdd1b4e1372946daa Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Fri, 28 Nov 2014 10:47:49 -0500 Subject: [PATCH 4/4] 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 /etc/texmf/postinstall, 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 5d915b1..818ccef 100644 --- a/lib/src_postinst.cygpart +++ b/lib/src_postinst.cygpart @@ -337,19 +337,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}/etc/texmf/postinstall/${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.1