diff options
Diffstat (limited to 'japanese/ptex-jis/pkg-deinstall')
-rw-r--r-- | japanese/ptex-jis/pkg-deinstall | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/japanese/ptex-jis/pkg-deinstall b/japanese/ptex-jis/pkg-deinstall new file mode 100644 index 000000000000..c432da27777a --- /dev/null +++ b/japanese/ptex-jis/pkg-deinstall @@ -0,0 +1,14 @@ +#!/bin/sh +# Preserve files installed by ptex-common, or other package/application. +# +files="${PKG_PREFIX}/bin/pltotf ${PKG_PREFIX}/bin/tftopl ${PKG_PREFIX}/share/texmf/web2c/texmf.cnf ${PKG_PREFIX}/share/texmf/ls-R" + +if [ "$2" != "POST-DEINSTALL" ]; then + exit; +fi + +for f in ${files}; do + if [ -f $f.old ]; then + mv $f.old $f + fi +done |