diff options
| author | Glenn Morris | 2007-11-17 03:42:57 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-17 03:42:57 +0000 |
| commit | 1453abd0cc4897e053d9c5329ea99c9e8e78c68f (patch) | |
| tree | 168f65b1e6bbf3dd41f96e6f5f2b1a7afe76d724 /admin | |
| parent | d43c8d03328f16f7b5ac27f46b60911ff483131b (diff) | |
| download | emacs-1453abd0cc4897e053d9c5329ea99c9e8e78c68f.tar.gz emacs-1453abd0cc4897e053d9c5329ea99c9e8e78c68f.zip | |
(process-lines): Move to ../lisp/subr.el.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 4 | ||||
| -rw-r--r-- | admin/admin.el | 17 |
2 files changed, 4 insertions, 17 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index 706b2f68c8d..20d0adc0e89 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-11-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * admin.el (process-lines): Move to ../lisp/subr.el. | ||
| 4 | |||
| 1 | 2007-10-23 Glenn Morris <rgm@gnu.org> | 5 | 2007-10-23 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * MAINTAINERS: Move here from ../. | 7 | * MAINTAINERS: Move here from ../. |
diff --git a/admin/admin.el b/admin/admin.el index 76c50243b3d..a8b436171c5 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -29,23 +29,6 @@ | |||
| 29 | 29 | ||
| 30 | ;;; Code: | 30 | ;;; Code: |
| 31 | 31 | ||
| 32 | (defun process-lines (program &rest args) | ||
| 33 | "Execute PROGRAM with ARGS, returning its output as a list of lines. | ||
| 34 | Signal an error if the program returns with a non-zero exit status." | ||
| 35 | (with-temp-buffer | ||
| 36 | (let ((status (apply 'call-process program nil (current-buffer) nil args))) | ||
| 37 | (unless (eq status 0) | ||
| 38 | (error "%s exited with status %s" program status)) | ||
| 39 | (goto-char (point-min)) | ||
| 40 | (let (lines) | ||
| 41 | (while (not (eobp)) | ||
| 42 | (setq lines (cons (buffer-substring-no-properties | ||
| 43 | (line-beginning-position) | ||
| 44 | (line-end-position)) | ||
| 45 | lines)) | ||
| 46 | (forward-line 1)) | ||
| 47 | (nreverse lines))))) | ||
| 48 | |||
| 49 | (defun add-release-logs (root version) | 32 | (defun add-release-logs (root version) |
| 50 | "Add \"Version VERSION released.\" change log entries in ROOT. | 33 | "Add \"Version VERSION released.\" change log entries in ROOT. |
| 51 | Root must be the root of an Emacs source tree." | 34 | Root must be the root of an Emacs source tree." |