Function: vc-sccs-search-project-dir
vc-sccs-search-project-dir is a byte-compiled function defined in
vc-sccs.el.gz.
Signature
(vc-sccs-search-project-dir DIRNAME BASENAME)
Documentation
Return the name of a master file in the SCCS project directory.
Does not check whether the file exists but returns nil if it does not find any project directory.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-sccs.el.gz
;;;
;;; Internal functions
;;;
;; This function is wrapped with `progn' so that the autoload cookie
;; copies the whole function itself into loaddefs.el rather than just placing
;; a (autoload 'vc-sccs-search-project-dir "vc-sccs") which would not
;; help us avoid loading vc-sccs.
;;;###autoload
(progn (defun vc-sccs-search-project-dir (_dirname basename)
"Return the name of a master file in the SCCS project directory.
Does not check whether the file exists but returns nil if it does not
find any project directory."
(let ((project-dir (getenv "PROJECTDIR")) dirs dir)
(when project-dir
(if (file-name-absolute-p project-dir)
(setq dirs '("SCCS" ""))
(setq dirs '("src/SCCS" "src" "source/SCCS" "source"))
(setq project-dir (expand-file-name (concat "~" project-dir))))
(while (and (not dir) dirs)
(setq dir (expand-file-name (car dirs) project-dir))
(unless (file-directory-p dir)
(setq dir nil)
(setq dirs (cdr dirs))))
(and dir (expand-file-name (concat "s." basename) dir))))))