Function: gulp-maintainer
gulp-maintainer is a byte-compiled function defined in gulp.el.gz.
Signature
(gulp-maintainer FILENM DIR)
Documentation
Return a list (MAINTAINER TIMESTAMP) for the package FILENM in directory DIR.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/gulp.el.gz
(defun gulp-maintainer (filenm dir)
"Return a list (MAINTAINER TIMESTAMP) for the package FILENM in directory DIR."
(save-excursion
(let* ((fl (expand-file-name filenm dir)) mnt
(timest (format-time-string "%Y-%m-%d %a %T %Z"
(elt (file-attributes fl) 5))))
(set-buffer gulp-tmp-buffer)
(erase-buffer)
(insert-file-contents fl nil 0 gulp-max-len)
(goto-char 1)
(if (re-search-forward gulp-discard nil t)
(setq mnt nil) ;; do nothing, return nil
(goto-char 1)
(if (and (re-search-forward "^;+ *Maintainer: \\(.*\\)$" nil t)
(> (length (setq mnt (match-string 1))) 0))
() ;; found!
(goto-char 1)
(if (re-search-forward "^;+ *Author: \\(.*\\)$" nil t)
(setq mnt (match-string 1))))
(if (= (length mnt) 0) (setq mnt nil))) ;; "^;; Author: $" --> nil
(cons mnt timest))))