#!/bin/sh
#

# remove autoloads from the emacs site-start file
f1=/etc/site-start.el
f1=`perl -e 'for(@ARGV){while(-l){$_=readlink;};print $_;}' $f1`
test -f $f1 || (echo lost site-start.el; exit 1)
l1='(if (file-exists-p "/usr/lib/emacs/site-lisp/w3-init.el") (load "w3-init"))'
grep -v "^$l1$" $f1 >$f1~ 
mv $f1~ $f1
install-info --quiet --remove w3
exit 0
