Xref: utzoo comp.emacs:10773 gnu.emacs.help:2146 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!s3!s3.ireq.hydro.qc.ca!gamin From: gamin@ireq-robot.hydro.qc.ca (Martin Boyer) Newsgroups: comp.emacs,gnu.emacs.help Subject: Re: Building new versions of emacs and DOC. Keywords: DOC files, version numbers Message-ID: Date: 25 May 91 03:17:15 GMT References: <7595@rex.cs.tulane.edu> Sender: usenet@s3.ireq.hydro.qc.ca Organization: Le laboratoire de robotique de l'Institut de recherche d'Hydro-Quebec Lines: 100 In-reply-to: wbt@rex.cs.tulane.edu's message of 21 May 91 19:49:22 GMT wbt@rex.cs.tulane.edu (Bill Thomason) writes: At my site I have to compile emacs for 3 different architectures. Each binary will refer to a differnt DOC-18.57 file. I have seen no differences between any two of the generated DOC files. What I'd like to do is store one copy of DOC and have it referenceable by the various copies of emacs I will install. I agree with you. As far as I can tell, the DOC files for our Sun3 architecture are the same as those produced on SPARCs. Cygnus support (we have a service contract), hovewer, says that the DOC files can't be shared across architectures. My feeling is that as long as the architectures save data the same way (endianness), the DOC files don't change. Anybody else would care to comment on this? Somewhere the installation process is keeping track the number of compilations. Where is that location? If I can modify this number will the modification affect only the naming convention of the DOC-18.57.* and emac-18.57.* files? Yes, and the version number is controlled by an elisp file, inc-vers.el. It reads the version.el file and increments the minor version number it finds in there. I have modified inc-vers.el to keep the version number untouched, and I modify version.el manually every time I modify important .el files. We have one version number of emacs for the whole site here. Here is my version of inc-vers.el, you'll simply have to modify the path of the version.el file as in: (insert-file-contents "../lisp/version.el") ;----Le laboratoire de robotique de l'Institut de recherche d'Hydro-Quebec----- ; ; Nom : (load-file "inc-version") ; Fonction: Increment the recorded Emacs version number. ; Fichiers: inc-vers.el ; Notes : ; ; Cree : 10 octobre 90 ------- Martin Boyer ; Modifie : 26 avril 91 -------2- Martin Boyer ; Copyright (C) 1985, 1986 Free Software Foundation, Inc. ; ; Historique: ; ; 26 avril 91 -------2- Martin Boyer ; Modifie pour utiliser le path complet de version.el. ; ; 10 octobre 90 -----1- Martin Boyer ; Modifie pour ne pas incrementer le numero de version; je prefere ; l'incrementer manuellement plutot qu'a chaque compilation. ;------------------------------------------------------------------------------ ;; Load this file to increment the recorded Emacs version number. ;; Copyright (C) 1985, 1986 Free Software Foundation, Inc. ;; This file is part of GNU Emacs. ;; GNU Emacs is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 1, or (at your option) ;; any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. (insert-file-contents "/usr/local/gnu/elisp-ireq/version.el") (re-search-forward "emacs-version \"[^\"]*[0-9]+\"") (forward-char -1) (save-excursion (save-restriction (narrow-to-region (point) (progn (skip-chars-backward "0-9") (point))) (goto-char (point-min)) (let ((version (read (current-buffer)))) (delete-region (point-min) (point-max)) (prin1 version (current-buffer))))) (skip-chars-backward "^\"") (message "La nouvelle version de Emacs sera %s" (buffer-substring (point) (progn (skip-chars-forward "^\"") (point)))) (erase-buffer) (set-buffer-modified-p nil) (kill-emacs) -- Martin Boyer mboyer@ireq-robot.hydro.qc.ca Institut de recherche d'Hydro-Quebec mboyer@ireq-robot.uucp Varennes, QC, Canada J3X 1S1 +1 514 652-8412