[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev "make lynx.patch" tweak
From: |
pg |
Subject: |
lynx-dev "make lynx.patch" tweak |
Date: |
Sun, 3 Oct 1999 16:31:48 -0600 (MDT) |
I notice some correspondence encouraging use of the makefile to
generate patches. I wrote this using "diff -c" since "diff -u"
is a GNUdism, not covered by the POSIX mantle. I notice that
it's easy to test at runtime for availability of "diff -u" and
use it. Patch attached to do this. (This could even be tested
in the configure script. I didn't feel inspired to do so.
Editor's choice. :-)
-- gil
--
StorageTek
INFORMATION made POWERFUL
=============================================================================
%%% Created Sat Oct 2 22:38:16 MDT 1999 by target lynx.patch. %%%
diff -bru orig/lynx2-8-3/makefile.in lynx2-8-3/makefile.in
--- orig/lynx2-8-3/makefile.in Thu Aug 26 05:31:19 1999
+++ lynx2-8-3/makefile.in Sat Oct 2 22:36:24 1999
@@ -287,7 +287,7 @@
REFDIR=orig/$(lynxdir)
lynx.patch: $(top_srcdir) $(top_srcdir)/CHANGES
- cd $(top_srcdir)/.. && cd $(REFDIR) && { rm -f \
+ - cd $(top_srcdir)/.. && cd $(REFDIR) && { rm -f \
config.log \
config.status \
lynx_cfg.h \
@@ -296,10 +296,12 @@
( set -x; cd $$I && rm -f *.orig *.rej makefile ); : );
\
done; }
( cd $(top_srcdir)/..; echo "%%% Created `date` by target
address@hidden %%%"; \
- diff -brc $(REFDIR) $(lynxdir) ) \
+ if diff -bru /dev/null /dev/null; \
+ then diff -bru $(REFDIR) $(lynxdir); \
+ else diff -brc $(REFDIR) $(lynxdir); fi ) \
| grep -v '^Common' \
| grep -v '^Binary files ' \
- | grep -v '^Only ' | tee $@ | grep '^--- $(lynxdir)'
+ | grep -v '^Only ' | tee $@ | egrep '^\-\-\- .*$(lynxdir)'
install: install-bin install-man install-cfg @INSTALL_LSS@
@echo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev "make lynx.patch" tweak,
pg <=