Function: project-am-find-topmost-level
project-am-find-topmost-level is a byte-compiled function defined in
project-am.el.gz.
Signature
(project-am-find-topmost-level DIR)
Documentation
Find the topmost automakefile starting with DIR.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede/project-am.el.gz
(defun project-am-find-topmost-level (dir)
"Find the topmost automakefile starting with DIR."
(let ((newdir dir))
(while (or (file-exists-p (concat newdir "Makefile.am"))
(file-exists-p (concat newdir "configure.ac"))
(file-exists-p (concat newdir "configure.in"))
)
(setq dir newdir newdir
(file-name-directory (directory-file-name newdir))))
(expand-file-name dir)))