~mdw
/
profile
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
el/dot-emacs.el: Hoist `mdw-display-buffer-in-designated-window'.
[profile]
/
bin
/
mdw-conf
1
#! /bin/sh
2
3
set
-
e
4
var
=
${1?var}
5
val
=
$
(
6
sed
-
n
"
7
/^[ ]*
$var
[ ]*=[ ]*\(.*[^ ]\)\{0,1\}[ ]*$/ {
8
s//\1/; p; q
9
}
10
"
${MDWCONF-$HOME/.mdw.conf}
)
11
case
"
$val
,
$2
"
in
12
""
,
""
)
echo
>&
2
"
$0
: configuration variable
$var
not found."
;
exit
1
;;
13
""
,*)
val
=
$2
;;
14
"~/"
*)
val
=
$HOME
/
${val#\~/}
;;
15
esac
16
echo
"
$val
"