chiark / gitweb /
emacs: load ian-local.el if it exists; load private.el if it exists
[ian-dotfiles.git] / from-cvs / files / _.configs_configure.old
1 #!/bin/sh
2 # Configuration script
3
4 display=`echo $DISPLAY | sed -e 's/:.*$//' -e 's/\.[^0-9].*$//'`
5 [ "x$display" = x ] && display=$HOST
6
7 echo `
8
9 grep '^host='"$display"' ' $HOME/.configs/list
10 [ "x$HOST" = "x$display" ] && grep '^arch='"$ARCH"' ' $HOME/.configs/list
11 grep '^default ' $HOME/.configs/list | sed -e 's/^default //'
12
13 ` | sed -e 's/^/ /' -e 's/ \([a-z][^    =]*\)=/ '$1'\1=/g'