[m-rev.] diff: check for lynx

Peter Ross pro at missioncriticalit.com
Sun Oct 26 01:07:00 AEST 2003


Hi,


===================================================================


Estimated hours taken: 0.5
Branches: main

Not everybody has lynx installed on their systems, so test for it.

configure.in:
	Add a check for lynx.

Mmake.common.in:
	Save the result of the test.

Mmakefile:
	Use cat instead of lynx for converting HTML to text, if lynx
	doesn't exist.


Index: Mmake.common.in
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmake.common.in,v
retrieving revision 1.74
diff -u -r1.74 Mmake.common.in
--- Mmake.common.in	26 May 2003 10:08:17 -0000	1.74
+++ Mmake.common.in	25 Oct 2003 15:03:14 -0000
@@ -193,6 +193,7 @@
 TEXI2DVI=@TEXI2DVI@
 DVIPS=@DVIPS@
 MAKEINFO=@MAKEINFO@
+LYNX=@LYNX@
 PERL=@PERL@
 
 #-----------------------------------------------------------------------------#
Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmakefile,v
retrieving revision 1.100
diff -u -r1.100 Mmakefile
--- Mmakefile	17 Apr 2003 06:24:22 -0000	1.100
+++ Mmakefile	25 Oct 2003 15:03:17 -0000
@@ -264,7 +264,11 @@
 INSTALL: .INSTALL.in VERSION
 	sed 's/@VERSION@/$(VERSION)/g' .INSTALL.in > INSTALL
 
+ifeq ("$(LYNX)","")
+TEXT_TO_HTML = cat
+else
 TEXT_TO_HTML = TERM=vt100 lynx -dump
+endif
 
 WORK_IN_PROGRESS: compiler/notes/work_in_progress.html
 	$(TEXT_TO_HTML) compiler/notes/work_in_progress.html > WORK_IN_PROGRESS
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.376
diff -u -r1.376 configure.in
--- configure.in	7 Oct 2003 12:34:33 -0000	1.376
+++ configure.in	25 Oct 2003 15:03:24 -0000
@@ -443,6 +443,9 @@
 esac
 AC_SUBST(TEXI2DVI)
 #-----------------------------------------------------------------------------#
+AC_PATH_PROG(LYNX,lynx)
+AC_SUBST(lynx)
+#-----------------------------------------------------------------------------#
 AC_PATH_PROG(DVIPS,dvips)
 AC_SUBST(DVIPS)
 #-----------------------------------------------------------------------------#

-- 
Peter Ross		
Software Engineer                                (Work)   +32 2 757 10 15
Mission Critical                                 (Mobile) +32 485 482 559
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list