🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98891

18.56 Installation; cc -E strips backslash

#98891
From: Frank Ooms
Date: Mon, 28 Jan 1991 07:42
175 lines
7102 bytes
On installation of emacs version 18.56 on our convex C220, OS version
8.1, I had the problem that cc -E strips a single backslash at the end
of a line. This problem occurs in the building of the src/xmakefile
from ynakefile. I replaced the single backslash by a double, this was
not touched by cc -E, so it had to be set correctly by the sed in
src/Makefile.

what follows is a patch to correct this:

*** src/ymakefile	Sun Jan 27 11:07:36 1991
--- src/ymakefile.orig	Sun Jan 20 14:35:05 1991
***************
*** 218,233 ****
  
  /* lastfile must follow all files
     whose initialized data areas should be dumped as pure by dump-emacs. */
! obj=    dispnew.o scroll.o xdisp.o window.o \\
! 	term.o cm.o $(XOBJ) \\
! 	emacs.o keyboard.o macros.o keymap.o sysdep.o \\
! 	buffer.o filelock.o insdel.o marker.o \\
! 	minibuf.o fileio.o dired.o filemode.o \\
! 	cmds.o casefiddle.o indent.o search.o regex.o undo.o \\
! 	alloc.o data.o doc.o editfns.o callint.o \\
! 	eval.o fns.o print.o lread.o \\
! 	abbrev.o syntax.o UNEXEC mocklisp.o bytecode.o \\
! 	process.o callproc.o $(environobj) \\
  	doprnt.o
  
  #ifdef TERMINFO
--- 218,233 ----
  
  /* lastfile must follow all files
     whose initialized data areas should be dumped as pure by dump-emacs. */
! obj=    dispnew.o scroll.o xdisp.o window.o \
! 	term.o cm.o $(XOBJ) \
! 	emacs.o keyboard.o macros.o keymap.o sysdep.o \
! 	buffer.o filelock.o insdel.o marker.o \
! 	minibuf.o fileio.o dired.o filemode.o \
! 	cmds.o casefiddle.o indent.o search.o regex.o undo.o \
! 	alloc.o data.o doc.o editfns.o callint.o \
! 	eval.o fns.o print.o lread.o \
! 	abbrev.o syntax.o UNEXEC mocklisp.o bytecode.o \
! 	process.o callproc.o $(environobj) \
  	doprnt.o
  
  #ifdef TERMINFO
***************
*** 263,277 ****
  otherobj= $(termcapobj) lastfile.o $(mallocobj)
  
  /* List of Lisp files loaded into the dumped Emacs. */
! lisp=	${lispdir}simple.elc ${lispdir}help.elc \\
! 	${lispdir}files.elc ${lispdir}window.elc \\
! 	${lispdir}indent.elc ${lispdir}loaddefs.el ${lispdir}paths.el \\
! 	${lispdir}startup.elc ${lispdir}lisp.elc \\
! 	${lispdir}page.elc ${lispdir}register.elc \\
! 	${lispdir}paragraphs.elc ${lispdir}lisp-mode.elc \\
! 	${lispdir}text-mode.elc ${lispdir}fill.elc \\
! 	${lispdir}c-mode.elc ${lispdir}isearch.elc \\
! 	${lispdir}replace.elc ${lispdir}abbrev.elc \\
  	${lispdir}buff-menu.elc ${lispdir}subr.elc
  
  /* just to be sure the sh is used */
--- 263,277 ----
  otherobj= $(termcapobj) lastfile.o $(mallocobj)
  
  /* List of Lisp files loaded into the dumped Emacs. */
! lisp=	${lispdir}simple.elc ${lispdir}help.elc \
! 	${lispdir}files.elc ${lispdir}window.elc \
! 	${lispdir}indent.elc ${lispdir}loaddefs.el ${lispdir}paths.el \
! 	${lispdir}startup.elc ${lispdir}lisp.elc \
! 	${lispdir}page.elc ${lispdir}register.elc \
! 	${lispdir}paragraphs.elc ${lispdir}lisp-mode.elc \
! 	${lispdir}text-mode.elc ${lispdir}fill.elc \
! 	${lispdir}c-mode.elc ${lispdir}isearch.elc \
! 	${lispdir}replace.elc ${lispdir}abbrev.elc \
  	${lispdir}buff-menu.elc ${lispdir}subr.elc
  
  /* just to be sure the sh is used */
***************
*** 361,372 ****
  #endif /* HAVE_X_WINDOWS */
  
  paths.h: paths.h-dist
! 	@sh -c "if test -r $@; then echo $? is newer than $@; exit 1;\\
  	  else exit 0; fi"
  	cp $? $@
  
  config.h: config.h-dist
! 	@sh -c "if test -r $@; then echo $? is newer than $@; exit 1;\\
  	  else exit 0; fi"
  	cp $? $@
  
--- 361,372 ----
  #endif /* HAVE_X_WINDOWS */
  
  paths.h: paths.h-dist
! 	@sh -c "if test -r $@; then echo $? is newer than $@; exit 1;\
  	  else exit 0; fi"
  	cp $? $@
  
  config.h: config.h-dist
! 	@sh -c "if test -r $@; then echo $? is newer than $@; exit 1;\
  	  else exit 0; fi"
  	cp $? $@
  
***************
*** 387,394 ****
  	cp alloca.s allocatem.c
  /* remove any ^L, blank lines, and preprocessor comments,
     since some assemblers barf on them */
! 	$(CPP) allocatem.c | \\
! 	sed -e 's///' -e 's/^#.*//' | \\
  	sed -n -e '/^..*$$/p' > allocatem.s
  	-rm -f alloca.o
  /* Xenix, in particular, needs to run assembler via cc.  */
--- 387,394 ----
  	cp alloca.s allocatem.c
  /* remove any ^L, blank lines, and preprocessor comments,
     since some assemblers barf on them */
! 	$(CPP) allocatem.c | \
! 	sed -e 's///' -e 's/^#.*//' | \
  	sed -n -e '/^..*$$/p' > allocatem.s
  	-rm -f alloca.o
  /* Xenix, in particular, needs to run assembler via cc.  */
***************
*** 450,460 ****
  xdisp.o : xdisp.c macros.h commands.h indent.h buffer.h dispextern.h termchar.h window.h config.h 
  xfns.o : xfns.c xterm.h window.h config.h
  xmenu.o : xmenu.c xterm.h window.h config.h
! xterm.o : xterm.c xterm.h termhooks.h termopts.h termchar.h \\
   dispextern.h config.h sink.h sinkmask.h
  
  x11fns.o : x11fns.c window.h x11term.h dispextern.h termchar.h config.h
! x11term.o : x11term.c x11term.h termhooks.h termopts.h termchar.h \\
   dispextern.h config.h sink.h sinkmask.h
  
  /* The files of Lisp proper */
--- 450,460 ----
  xdisp.o : xdisp.c macros.h commands.h indent.h buffer.h dispextern.h termchar.h window.h config.h 
  xfns.o : xfns.c xterm.h window.h config.h
  xmenu.o : xmenu.c xterm.h window.h config.h
! xterm.o : xterm.c xterm.h termhooks.h termopts.h termchar.h \
   dispextern.h config.h sink.h sinkmask.h
  
  x11fns.o : x11fns.c window.h x11term.h dispextern.h termchar.h config.h
! x11term.o : x11term.c x11term.h termhooks.h termopts.h termchar.h \
   dispextern.h config.h sink.h sinkmask.h
  
  /* The files of Lisp proper */
*** src/Makefile	Sun Jan 27 11:07:13 1991
--- src/Makefile.orig	Sun Jan 27 11:04:28 1991
***************
*** 31,37 ****
  xmakefile: ymakefile config.h
  	-rm -f xmakefile junk.c
  	cp ymakefile junk.c
! 	$(CPP) junk.c | sed -e 's/^#.*//' -e 's/^[ \f\t][ \f\t]*$$//' -e 's/^ /	/' -e 's/\\\\$$/\\/' | \
  	sed -n -e '/^..*$$/p' > xmakefile
  	rm -f junk.c
  
--- 31,37 ----
  xmakefile: ymakefile config.h
  	-rm -f xmakefile junk.c
  	cp ymakefile junk.c
! 	$(CPP) junk.c | sed -e 's/^#.*//' -e 's/^[ \f\t][ \f\t]*$$//' -e 's/^ /	/' | \
  	sed -n -e '/^..*$$/p' > xmakefile
  	rm -f junk.c
  

-- 
	/*	    Frank Ooms,   +31 15-621554			*
	 *	      ooms%delgeo@nluug.nl			*
 	 *		ooms@delgeo.uucp			*
 	 *	    ..!mcsun!hp4nl!delgeo!ooms			*/
Technical Details
Message-ID: <1969@delgeo.UUCP>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!sun1.ruf.uni-freiburg.de!ira.uka.de!sol.ctr.columbia.edu!lll-winken!uwm.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!relay.eu.net!delgeo!ooms

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,34ba16136db7bb56,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-01-27 23:42:18 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!sun1.ruf.uni-freiburg.de!ira.uka.de!sol.ctr.columbia.edu!lll-winken!uwm.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!relay.eu.net!delgeo!ooms
From: delgeo!ooms@relay.eu.net (Frank Ooms)
Newsgroups: gnu.emacs.bug
Subject: 18.56 Installation; cc -E strips backslash
Message-ID: <1969@delgeo.UUCP>
Date: 28 Jan 91 07:42:18 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Delft Geophysical b.v.
Lines: 175
Approved: bug-gnu-emacs@prep.ai.mit.edu