summaryrefslogtreecommitdiff
path: root/www/w3-4/files/user-install.tmpl
blob: 118f0b23da115867cf8e35be1b76f7a2bebd5b5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

SAMPLEDIR=%SAMPLEDIR%

if [ ! -f ${HOME}/.mosaic-hotlist-default ]; then
	cp ${SAMPLEDIR}/dot.mosaic-hotlist-default ${HOME}/.mosaic-hotlist-default
fi

mv ${HOME}/.emacs ${HOME}/.emacs.org.$$
sed -e '/^;;* Emacs-w3 ;*$/,/^;; *Emacs-w3 end$/d' < ${HOME}/.emacs.org.$$ > ${HOME}/.emacs
cat ${SAMPLEDIR}/dot.emacs >> ${HOME}/.emacs