Mercurial > emacs
view config.bat @ 12251:f2519a110e5f
The RCS status is now found by reading the
master file directly, instead of using rlog. The properties
retrieved from the master file are kept separately. The two
main properties, `vc-workfile-version' and `vc-locking-user',
are inferred from those master file properties if the
information cannot be found elsehow. All properties are
consistently cached now.
(vc-master-info, vc-log-info, vc-fetch-properties): functions
removed. Their job is now done by `vc-fetch-master-properties'
and `vc-insert-file'.
(vc-fetch-master-properties): new function, replaces
vc-fetch-properties. Retrieves all the properties that can be
found in the master file, for all three backends (calls
`cvs status' in the CVS case).
(vc-insert-file): new function. Inserts an arbitrary file
into the current buffer, optionally chunkwise, until a certain
regexp shows up.
(vc-parse-locks): new function. Translates SCCS or RCS lock
lists, as found in the master files, into lisp lists. Sets
the new property `vc-master-locks'.
(vc-locked-version): property removed. Was unnecessary, and
only referenced in vc-hooks.el.
(vc-head-version, vc-default-branch, vc-master-locks):
new properties.
(vc-top-version): new name for the old property
`vc-branch-version'. ("top-version" is better because it
might also be the RCS "head" if there is no default branch.)
(vc-master-locking-user): replaces `vc-true-locking-user'.
Scans the new `vc-master-locks' property, yielding the master
file's idea of who is locking the current workfile version.
(vc-locking-user): slightly changed to use the new properties.
Changed the actual property value for an unlocked file to
'none. This is to distinguish it from an unknown locking
state, which is represented by nil. The function vc-locking-user
returns nil if the property is 'none, to make it compatible with
the rest of VC.
(vc-consult-rcs-headers, vc-master-locking-user): adpated to
the new 'none-value of vc-locking-user.
(vc-consult-rcs-headers): fixed bug that prevented
(not vc-consult-headers) from working
(vc-file-not-found-hook): set the default-directory of the new
buffer before check-out. (Otherwise, setting vc-keep-workfiles
to nil doesn't work.)
(vc-occurences, vc-branch-p): functions removed (no longer needed)
Reordered some defuns so they are grouped in a logical way.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 15 Jun 1995 23:06:45 +0000 |
parents | 9eae919f9a23 |
children | 09c2ad9213dd |
line wrap: on
line source
@echo off rem ---------------------------------------------------------------------- rem Configuration script for MSDOS rem Copyright (C) 1994 Free Software Foundation, Inc. rem This file is part of GNU Emacs. rem GNU Emacs is free software; you can redistribute it and/or modify rem it under the terms of the GNU General Public License as published by rem the Free Software Foundation; either version 2, or (at your option) rem any later version. rem GNU Emacs is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the rem GNU General Public License for more details. rem You should have received a copy of the GNU General Public License rem along with GNU Emacs; see the file COPYING. If not, write to rem the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. rem ---------------------------------------------------------------------- rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: rem rem + msdos version 3 or better. rem + djgpp version 1,11 maint 4 or better. rem + make utility that allows breaking of the 128 chars limit on rem command lines. ndmake (as of version 4.5) won't work due to a rem line length limit. rem + rm, mv, chmod (From GNU file utilities). rem + sed. rem rem You should be able to get all the above utilities from all rem Simtel repositories, e.g., oak.oakland.edu in the directories rem "/pub/msdos/djgpp" and "/pub/msdos/gnuish". As usual, please rem use your local mirroring site to reduce trans-Atlantic traffic. rem ---------------------------------------------------------------------- set X11= set nodebug= :again if "%1" == "" goto usage if "%1" == "--with-x" goto withx if "%1" == "--no-debug" goto nodebug if "%1" == "msdos" goto msdos :usage echo Usage: config [--with-x] [--no-debug] msdos echo [Read the script before you run it.] goto end rem ---------------------------------------------------------------------- :withx set X11=Y shift goto again rem ---------------------------------------------------------------------- :nodebug set nodebug=Y shift goto again rem ---------------------------------------------------------------------- :msdos Echo Checking whether `sed' is available... Sed -e "w junk.$$$" <Nul If Exist junk.$$$ Goto sedOk Echo To configure `Emacs' you need to have `sed'! Goto End :sedOk Echo Checking whether `rm' is available... rm -f junk.$$$ If Not Exist junk.$$$ Goto rmOk Echo To configure `Emacs' you need to have `rm'! Goto End :rmOk Echo Checking whether `mv' is available... rm -f junk.1 junk.2 echo foo >junk.1 mv junk.1 junk.2 If Exist junk.2 Goto mvOk Echo To configure `Emacs' you need to have `mv'! rm -f junk.1 Goto End :mvOk rm -f junk.2 Echo Checking whether `gcc' is available... echo main(){} >junk.c gcc -c junk.c if exist junk.o goto gccOk Echo To configure `Emacs' you need to have `gcc'! rm -f junk.c Goto End :gccOk rm -f junk.c junk.o Rem ---------------------------------------------------------------------- Echo Configuring the source directory... cd src set PATHSH=paths-h.in if exist %PATHSH% goto src1 set PATHSH=paths.h-in if exist %PATHSH% goto src1 echo config: *** The file originally called "src/paths.h.in" cannot be found. cd .. goto end :src1 set CONFIGH=config-h.in if exist %CONFIGH% goto src2 set CONFIGH=config.h-in if exist %CONFIGH% goto src2 echo config: *** The file originally called "src/config.h.in" cannot be found. cd .. goto end :src2 set MAKEFILEIN=makefile.in-in if exist %MAKEFILEIN% goto src3 set MAKEFILEIN=makefile-in.in if exist %MAKEFILEIN% goto src3 echo makefile: *** The file originally called "src/makefile.in.in" cannot be found. cd .. goto end :src3 rem Create "paths.h" sed -f ../msdos/sed4.inp <%PATHSH% >paths.tmp update paths.tmp paths.h >nul rm -f paths.tmp rem Create "config.h" rm -f config.h2 config.tmp cp %CONFIGH% config.tmp if "%X11%" == "" goto src4 sed -f ../msdos/sed2x.inp <%CONFIGH% >config.tmp :src4 sed -f ../msdos/sed2.inp <config.tmp >config.h2 update config.h2 config.h >nul rm -f config.tmp config.h2 rem On my system dir.h gets in the way. It's a VMS file so who cares. if exist dir.h ren dir.h vmsdir.h rem Create "makefile" from "makefile.in.in". rm -f makefile junk.c sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c gcc -E junk.c | sed -f ../msdos/sed1.inp >makefile rm -f junk.c if "%X11%" == "" goto src5 mv makefile makefile.tmp sed -f ../msdos/sed1x.inp <makefile.tmp >makefile rm -f makefile.tmp :src5 if "%nodebug%" == "" goto src6 sed -e "/^CFLAGS *=/s/ *-g//" <makefile >makefile.tmp mv -f makefile.tmp makefile :src6 cd .. rem ---------------------------------------------------------------------- Echo Configuring the library source directory... cd lib-src set MAKEFILEIN=makefile.in-in if exist %MAKEFILEIN% goto libsrc1 set MAKEFILEIN=makefile-in.in if exist %MAKEFILEIN% goto libsrc1 echo makefile: *** The file originally called "lib-src/Makefile.in.in" cannot be found. cd .. goto end :libsrc1 rem Create "makefile" from "makefile.in". sed -e "1,/cpp stuff/s@^# .*$@@" <%MAKEFILEIN% >junk.c gcc -E -I. -I../src junk.c | sed -e "s/^ / /" -e "/^#/d" -e "/^[ ]*$/d" >Makefile.new sed -f ../msdos/sed3.inp <makefile.new >makefile rm -f makefile.new junk.c if "%nodebug%" == "" goto libsrc2 sed -e "/^CFLAGS *=/s/ *-g//" <makefile >makefile.tmp mv -f makefile.tmp makefile :libsrc2 cd .. rem ---------------------------------------------------------------------- if "%X11%" == "" goto oldx1 Echo Configuring the oldxmenu directory... cd oldxmenu sed -f ../msdos/sed5x.inp <makefile.in >makefile if "%nodebug%" == "" goto oldx2 sed -e "/^CFLAGS *=/s/ *-g//" <makefile >makefile.tmp mv -f makefile.tmp makefile :oldx2 cd .. :oldx1 rem ---------------------------------------------------------------------- Echo Configuring the main directory... copy msdos\mainmake makefile >nul rem ---------------------------------------------------------------------- :end set X11= set nodebug= set MAKEFILEIN= set PATHSH= set CONFIGH=