blob: 59e638c5d70af79d5c8fdd2e8ddf35b0717e0172 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
--- makefile.in.orig Mon Jan 23 04:16:14 2006
+++ makefile.in Tue Apr 18 01:33:31 2006
@@ -360,13 +360,9 @@
if test "$(COMPRESS_PROG)" != "" ; then \
(cd $(HELPDIR) && $(COMPRESS_PROG) $$files ) \
fi'
- @echo Updating $(libdir)/lynx.cfg
- @ECHO_CC@$(SHELL) -c 'if test -f $(LIBDIR)/lynx.cfg ; then \
- mv $(LIBDIR)/lynx.cfg $(LIBDIR)/lynx.tmp ; \
- else \
- cp $(srcdir)/lynx.cfg $(LIBDIR)/lynx.tmp ; \
- fi'
- @echo Updating $(libdir)/lynx.cfg to point to installed help-files
+ @echo Updating $(libdir)/lynx.cfg.default
+ cp $(srcdir)/lynx.cfg $(LIBDIR)/lynx.tmp
+ @echo Updating $(libdir)/lynx.cfg.default to point to installed help-files
@ECHO_CC@sed -e '/^HELPFILE:http/s!^!#!' \
-e '/^#HELPFILE:file/s!#!!' \
$(LIBDIR)/lynx.tmp | \
@@ -374,9 +370,10 @@
$(SHELL) -c "$(scripts_dir)/cfg_path.sh lynx_doc $(helpdir)" | \
sed -e '/^HELPFILE:file/s!$$!$(COMPRESS_EXT)!' \
-e '/^HELPFILE:file/s!$(COMPRESS_EXT)$(COMPRESS_EXT)$$!$(COMPRESS_EXT)!' \
- >$(LIBDIR)/lynx.cfg
- chmod 644 $(LIBDIR)/lynx.cfg
+ >$(LIBDIR)/lynx.cfg.default
+ chmod 644 $(LIBDIR)/lynx.cfg.default
-rm -f $(LIBDIR)/lynx.tmp
+ -[ ! -f $(LIBDIR)/lynx.cfg ] && $(INSTALL_DATA) $(LIBDIR)/lynx.cfg.default $(LIBDIR)/lynx.cfg
LYHelp.h : help_files.sed LYHelp.hin
@echo Creating $@
@@ -398,7 +395,7 @@
$(SHELL) -c 'SHELL=$(SHELL) $(SHELL) $(scripts_dir)/cfg_defs.sh $(srcdir)'
install-cfg : $(LIBDIR)
- @$(SHELL) -c '$(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(LIBDIR)/lynx.cfg'
+ @$(SHELL) -c '$(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(LIBDIR)/lynx.cfg.default'
install-lss : $(LIBDIR)
-mv -f $(LIBDIR)/lynx.lss $(LIBDIR)/lynx.oldlss
|