|
|
|
#!/bin/sh -e
# Source debconf library.
. /usr/share/debconf/confmodule
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
#exit now if there is an error - no clean up to do
case $1 in
abort-upgrade|abort-remove|abort-deconfigure ) exit
esac
# if upgrading from tgif <= 3.0p13-1
rm -rf /etc/X11/tgif
# now configure
db_get tgif/papersize
papersize=$RET
db_get tgif/gridunits
gridunits=$RET
# write out results
for bit in "" "/ja_JP.eucJP" "/ru"; do
file=/etc/X11$bit/app-defaults/Tgif
# Write app-defaults file
case $papersize in
A4) paper="21cm x 29.7cm" ;;
Letter) paper="8.5in x 11in" ;;
esac
echo "Tgif*InitialPaperSize: $paper" >>$file
echo "Tgif*GridSystem: $gridunits" >>$file
done
| Results 1 - 1 |