2014-02-10 21:13:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-11-12 16:15:39 +01:00
|
|
|
check() {
|
|
|
|
for i ; do
|
|
|
|
if ! command -v $i >/dev/null 2>&1; then
|
|
|
|
echo "'$i' not found in PATH. Exiting." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
2014-02-10 21:13:02 +01:00
|
|
|
}
|
2014-11-12 16:15:39 +01:00
|
|
|
|
2014-02-10 21:13:02 +01:00
|
|
|
check emacs realpath
|
|
|
|
|
2014-02-12 11:49:24 +01:00
|
|
|
[ -f "$1" ] && node="$(realpath "$1")" || node="$1"
|
|
|
|
emacs --eval '(progn (info "'"$node"'")(delete-other-windows))'
|