## Construct the output directory.
assign releasepath $srcpath/dist-$build
-chmod -R +w $releasepath 2>/dev/null|| :
+chmod -R +w $releasepath 2>/dev/null || :
rm -rf $releasepath 2>/dev/null || :
mkdir $releasepath
case $verbose in
(setq shell-prompt-pattern "^[^]#$%>»}\n]*\\([]#$%»}]\\|>>?\\) *")
(setq comint-password-prompt-regexp
(concat "\\(\\([Ee]nter \\|[Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
- "[Pp]assword\\|pass phrase\\):"))
+ "[Pp]assword\\|pass phrase\\):")
+ comint-file-name-chars "~/A-Za-z0-9+@:_.$#%,={}-"
+ shell-file-name-chars comint-file-name-chars)
;; Notice passwords, and make C-a work right.
--- /dev/null
+### -*-conf-*-
+###
+### PulseAudio configuration
+
+## Include system configuration. This fairly sane on most systems.
+.include /etc/pulse/default.pa
+
+## Take over the system feep. We can just about twiddle the feep sample
+## using the Gnome thing, because it fiddles the symlink in this directory.
+## PulseAudio only rechecks the link after evicting the sample from its
+## cache, but that's good enough. What is annoying is that we have to
+## hardwire the home directory here.
+load-sample-dir-lazy @home@/.local/share/sounds/__custom
+load-module module-x11-bell sample=bell-window-system.ogg
## Key mappings.
xmodmap -e 'keysym BackSpace = BackSpace BackSpace'
-
- ## Gnome settings.
- case $vnc in no) run bginit gnome-settings-daemon ;; esac
}
###--------------------------------------------------------------------------
start-clients-local () { :; }
-scsv=$(pick_program screensaver gnome-screensaver xscreensaver)
-case $scsv in
- xscreensaver)
- scsvopts="-no-splash"
- ;;
- *)
- scsvopts=""
- ;;
-esac
-
start-clients () {
- ## Mail notification.
- run bginit mail-notification
-
- ## Gnome session. With great reluctance. At least it doesn't actually do
- ## anything.
- run bginit gnome-session
-
- ## Policykit authentication agent.
- agent=/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
- if [ -x $agent ]; then run bginit $agent; fi
-
- ## System monitor.
- case $vnc in no) run bginit gkrellm ;; esac
-
- ## Screensaver.
- case $vnc in
- no)
- run init xscreensaver-command -exit
- run bginit $scsv $scsvopts
- ;;
- esac
-
- ## Panel.
- case $vnc in no) run bginit gnome-panel ;; esac
+ ## Gnome session.
+ case $vnc in no) run bginit gnome-session ;; esac
## Local clients.
start-clients-local
done
echo " all done."
+## Substitute things which need substituting.
+dotfilessubst="
+ gitconfig
+ pulse-default.pa.in:.pulse/default.pa"
+echo "Installing dotfiles with substitutions..."
+for d in $dotfilessubst; do
+ case $d in
+ *:*) target=${d#*:} d=${d%%:*};;
+ *) target=.$d d=$d.in;;
+ esac
+ ft=$HOME$sub/$target
+ dir=${ft%/*}
+ mkdir -p $dir
+ sed "
+1i\
+### generated by $here/setup; do not edit!\
+
+/@home@/ s\a\a$HOME\ag
+/@releasekey@/ s\a\a$(bin/mdw-conf release-key 481334C2)\ag
+/@gitignore@/ s\a\a$(bin/mdw-conf gitignore $here/git/gitignore)\ag
+" dot/$d >$ft.new
+ mv $ft.new $ft
+ echo " $target"
+done
+echo " all done."
+
## Symlink backgrounds.
backgrounds="
jue-peek.jpg
echo " all done."
fi
-###--------------------------------------------------------------------------
-### Process the Git configuration.
-
-echo -n "Installing Git configuration:"
-sed "
-1i\
-### generated by $here/setup; do not edit!\
-
-/@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."
-
###--------------------------------------------------------------------------
### Install useful scripts included in this package.