aboutsummaryrefslogtreecommitdiffstats
path: root/russian/pscyr/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'russian/pscyr/pkg-deinstall')
-rw-r--r--russian/pscyr/pkg-deinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/russian/pscyr/pkg-deinstall b/russian/pscyr/pkg-deinstall
new file mode 100644
index 00000000000..51efeec6cc8
--- /dev/null
+++ b/russian/pscyr/pkg-deinstall
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# either $PKG_PREFIX or $3 should be set
+PREFIX=${PKG_PREFIX:-$3}
+
+case $2 in
+ POST-DEINSTALL)
+ perl -i -pe 's/pscyr\.map\n//m' ${PREFIX}/share/texmf/dvips/config/updmap
+ (cd ${PREFIX}/share/texmf/dvips/config/; sh updmap)
+ mktexlsr
+ ;;
+esac