Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / lib / dpkg / info / | server ip : 104.21.89.46 your ip : 172.70.127.146 H O M E |
Filename | /var/lib/dpkg/info/w3m.postinst |
Size | 1.42 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:56 |
Last modified | 04-Jan-2014 19:15 |
Last accessed | 06-Jul-2025 22:38 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh -e
dpkg-maintscript-helper rm_conffile \
/etc/w3m/w3mconfig 0.4.2-2~ -- "$@"
case "$1" in
configure)
update-alternatives --quiet --install /usr/bin/pager pager \
/usr/bin/w3m 25 \
--slave /usr/share/man/man1/pager.1.gz pager.1.gz \
/usr/share/man/man1/w3m.1.gz
update-alternatives --quiet --install /usr/bin/www-browser www-browser \
/usr/bin/w3m 25 \
--slave /usr/share/man/man1/www-browser.1.gz www-browser.1.gz \
/usr/share/man/man1/w3m.1.gz
# upgrade old config file to new config file
if test -e /etc/w3m/w3mconfig; then
mv -f /etc/w3m/w3mconfig /etc/w3m/w3mconfig.dpkg-tmp
tmp=$(tempfile -p w3m.subst.)
trap "rm -f $tmp" 0
while read opt val
do
val0=$(sed -ne 's/^'$opt'[[:space:]]*//p' /etc/w3m/w3mconfig.dpkg-tmp)
if [ "$val0" != "" ] && [ "$val" != "$val0" ]; then
echo 's/^'$opt'[[:space:]]*.*/'$opt' '$val0'/' >> $tmp
fi
done < /etc/w3m/config
if test -s $tmp; then
mv -f /etc/w3m/config /etc/w3m/config.dpkg-tmp
sed -f $tmp /etc/w3m/config.dpkg-tmp > /etc/w3m/config
rm -f $tmp
rm -f /etc/w3m/config.dpkg-tmp
fi
rm -f /etc/w3m/w3mconfig /etc/w3m/w3mconfig.dpkg-tmp
fi
;;
*)
esac
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
dpkg-maintscript-helper rm_conffile \
/etc/w3m/w3mconfig 0.4.2-2~ -- "$@"
case "$1" in
configure)
update-alternatives --quiet --install /usr/bin/pager pager \
/usr/bin/w3m 25 \
--slave /usr/share/man/man1/pager.1.gz pager.1.gz \
/usr/share/man/man1/w3m.1.gz
update-alternatives --quiet --install /usr/bin/www-browser www-browser \
/usr/bin/w3m 25 \
--slave /usr/share/man/man1/www-browser.1.gz www-browser.1.gz \
/usr/share/man/man1/w3m.1.gz
# upgrade old config file to new config file
if test -e /etc/w3m/w3mconfig; then
mv -f /etc/w3m/w3mconfig /etc/w3m/w3mconfig.dpkg-tmp
tmp=$(tempfile -p w3m.subst.)
trap "rm -f $tmp" 0
while read opt val
do
val0=$(sed -ne 's/^'$opt'[[:space:]]*//p' /etc/w3m/w3mconfig.dpkg-tmp)
if [ "$val0" != "" ] && [ "$val" != "$val0" ]; then
echo 's/^'$opt'[[:space:]]*.*/'$opt' '$val0'/' >> $tmp
fi
done < /etc/w3m/config
if test -s $tmp; then
mv -f /etc/w3m/config /etc/w3m/config.dpkg-tmp
sed -f $tmp /etc/w3m/config.dpkg-tmp > /etc/w3m/config
rm -f $tmp
rm -f /etc/w3m/config.dpkg-tmp
fi
rm -f /etc/w3m/w3mconfig /etc/w3m/w3mconfig.dpkg-tmp
fi
;;
*)
esac
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section