+echo " all done."
+
+###--------------------------------------------------------------------------
+### Process the Git configuration.
+
+echo -n "Installing Git configuration:"
+sed "
+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
+mv $HOME/.gitconfig.new $HOME/.gitconfig
+echo " done."
+
+###--------------------------------------------------------------------------
+### Install useful scripts included in this package.
+
+scripts="
+ mdw-editor
+ mdw-conf
+ movemail-hack
+ emerge-hack"
+[ "$xstuff" ] && scripts="$scripts
+ xrun
+ 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
+ mv $ft.new $ft
+ echo " $s"
+done
+echo " all done."
+
+###--------------------------------------------------------------------------
+### Set up the Emacs config.