1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#!/bin/bash
# littex postinst
set -e
PACKAGE=littex
remove_conffile_commit () {
# syntax: remove_conffile_commit filename
#
# Complete the removal of a conffile "filename" that has become obsolete.
#
# Call this function from a postinst script after having used
# remove_conffile_prepare() in the preinst.
# validate arguments
if [ $# -ne 1 ]; then
echo "remove_conffile_commit() called with wrong number of" \
"arguments; expected 1, got $#"
exit 2
fi
conffile="$1"
# if the temporary file created by remove_conffile_prepare() exists, remove it
if [ -e "$conffile.${PACKAGE}-tmp" ]; then
echo "committing removal of obsolete conffile $conffile"
rm "$conffile.${PACKAGE}-tmp"
fi
}
if [ "$1" = "configure" ]; then
remove_conffile_commit /etc/texmf/updmap.d/10littex.cfg
remove_conffile_commit /etc/texmf/language.d/10littex.cnf
fi
#DEBHELPER#
exit 0
|