## Symlink the various dotfiles into place
dotfiles="
bash_profile bash_logout bashrc inputrc bash_completion
- emacs emacs-calc vm
- vimrc mg
+ emacs emacs-calc vm gnus.el
+ vimrc mg zile
mailrc signature
cgrc tigrc
gdbinit
lisp-init.lisp:.sbclrc
lisp-init.lisp:.clisprc.lisp
lisp-init.lisp:.eclrc
+ swank.lisp
dircolors colordiffrc screenrc cvsrc indent.pro"
[ "$xstuff" ] && dotfiles="$dotfiles
xinitrc xsession Xdefaults vncrc vncsession
fonts.conf
+ stalonetrayrc
putty-defaults:.putty/sessions/Default%20Settings
eterm-theme.cfg:.Eterm/themes/Eterm/theme.cfg
e-keybindings.cfg:.enlightenment/keybindings.cfg
evnc-keybindings.cfg:.enlightenment-vnc/keybindings.cfg
- e16-bindings:.e16/bindings.cfg
- jue-peek.jpg:.enlightenment/backgrounds/jue-peek.jpg
- jue-peek.jpg:.e16/backgrounds/jue-peek.jpg"
+ e16-bindings:.e16/bindings.cfg"
echo "Installing dotfiles..."
for d in $dotfiles; do
target=.$d
ft=$HOME$sub/$target
dir=${ft%/*}
mkdir -p $dir
- ln -s $here/$d $ft.new
+ ln -s $here/dot/$d $ft.new
mv $ft.new $ft
echo " $target"
done
echo " all done."
+## Symlink backgrounds.
+backgrounds="
+ jue-peek.jpg
+ medusa.jpg
+ bsg-supper.jpg
+ rayne.jpg
+ hypatia.jpg
+ noodly.jpg"
+if [ "$xstuff" ]; then
+ echo "Installing backgrounds..."
+ for b in $backgrounds; do
+ for e in enlightenment e16; do
+ dir=$HOME$sub/.$e/backgrounds
+ t=$dir/$b
+ mkdir -p $dir
+ ln -s $here/bg/$b $t.new
+ mv $t.new $t
+ done
+ echo " $b"
+ done
+ echo " all done."
+fi
+
###--------------------------------------------------------------------------
### Process the Git configuration.
1i\
### generated by $here/setup; do not edit!\
-/@releasekey@/ s::$(./mdw-conf release-key 481334C2):g
-/@gitignore@/ s::$(./mdw-conf gitignore $here/gitignore):g
-" gitconfig >$HOME/.gitconfig.new
+/@releasekey@/ s::$(bin/mdw-conf release-key 481334C2):g
+/@gitignore@/ s::$(bin/mdw-conf gitignore $here/git/gitignore):g
+" git/gitconfig >$HOME/.gitconfig.new
mv $HOME/.gitconfig.new $HOME/.gitconfig
echo " done."
scripts="
mdw-editor
+ mdw-pager
mdw-conf
mdw-build
+ emacsclient-hack
movemail-hack
emerge-hack
lesspipe.sh
hyperspec"
[ "$xstuff" ] && scripts="$scripts
xinitcmd
+ un-backslashify-selection
+ lock-screen
xshutdown"
echo "Installing scripts..."
mkdir -p $HOME$sub/bin
for s in $scripts; do
ft=$HOME$sub/bin/$s
- ln -s $here/$s $ft.new
+ ln -s $here/bin/$s $ft.new
mv $ft.new $ft
echo " $s"
done
emacspkg="
make-regexp
ew-hols
+ mdw-gnus-patch
git git-blame vc-git stgit
quilt"
for elib in $emacspkg; do
(error 1))))'; then
echo " already installed."
else
- $echon " downloading$echoc"
- $GETURL $HOME$sub/lib/emacs/$elib.el $REPO/$elib.el
+ if [ -f el/$elib.el ]; then
+ cp el/$elib.el $HOME$sub/lib/emacs/$elib.el
+ else
+ $echon " downloading$echoc"
+ $GETURL $HOME$sub/lib/emacs/$elib.el $REPO/$elib.el
+ fi
$echon " compiling$echoc"
(cd $HOME$sub/lib/emacs;
$emacs >/dev/null 2>&1 --no-site-file --batch \
$echon "Setting up Emacs configuration:$echoc"
$echon " linking$echoc"
-for link in dot-emacs.el:dot-emacs.el emacs-Makefile:Makefile; do
+for f in dot-emacs.el Makefile; do
set -- $(echo $link | tr : ' ')
- from=$1 to=$2
- ln -s $here/$from $HOME$sub/lib/emacs/$to.new
- mv $HOME$sub/lib/emacs/$to.new $HOME$sub/lib/emacs/$to
+ ln -s $here/el/$f $HOME$sub/lib/emacs/$f.new
+ mv $HOME$sub/lib/emacs/$f.new $HOME$sub/lib/emacs/$f
done
$echon " compiling$echoc"
make >/dev/null 2>&1 -C $HOME$sub/lib/emacs EMACS=$emacs