Function: project-am-extract-shell-variable
project-am-extract-shell-variable is a byte-compiled function defined
in project-am.el.gz.
Signature
(project-am-extract-shell-variable VAR)
Documentation
Extract the value of the shell variable VAR from a shell script.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede/project-am.el.gz
(defun project-am-extract-shell-variable (var)
"Extract the value of the shell variable VAR from a shell script."
(save-excursion
(goto-char (point-min))
(when (re-search-forward (concat "^" (regexp-quote var) "\\s-*=\\s-*")
nil t)
(buffer-substring-no-properties (point) (line-end-position)))))