summaryrefslogtreecommitdiff
path: root/japanese/lynx-current/files/patch-aa
blob: 880289076776768760b61d582275753521fbe6b3 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- makefile.in.orig	Thu Aug 26 20:31:19 1999
+++ makefile.in	Tue Sep  7 17:27:56 1999
@@ -307,7 +307,7 @@
 	@echo "Use $(MAKE) install-doc to install extra documentation files"
 	@echo
 
-install-full: install install-help install-doc
+install-full: install install-doc install-help
 	@echo Full installation complete.
 
 install-bin: $(BINDIR) lynx$x
@@ -323,7 +323,7 @@
 	(cd $(srcdir) && tar cf - C[HO]* PROBLEMS README samples test ) | \
 			       ( cd $(DOCDIR) && tar xf - )
 	$(SHELL) -c 'for name in COPYING COPYHEADER; do \
-		cd $(HELPDIR) && ( $(LN_S) $(DOCDIR)/$$name . || cp $(DOCDIR)/$$name . );\
+		cd $(HELPDIR) && cp $(DOCDIR)/$$name . ;\
 		done'
 
 # HPUX 'sed' does not seem to like '=' as pattern delimiter.
@@ -361,22 +361,24 @@
 		fi ; \
 		)'
 	-rm -f $(HELPDIR)/help_files.sed
-	@echo Updating $(libdir)/lynx.cfg
-	$(SHELL) -c 'if test -f $(LIBDIR)/lynx.cfg ; then \
-		mv $(LIBDIR)/lynx.cfg $(LIBDIR)/lynx.tmp ; \
+	@echo Updating $(libdir)/lynx.cfg.default
+	$(SHELL) -c 'if test -f $(LIBDIR)/lynx.cfg.default ; then \
+		mv $(LIBDIR)/lynx.cfg.default $(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 to point to installed help-files
 	@ECHO_CC@sed	-e '/^HELPFILE:http/s@^@#@' \
 		-e '/^#HELPFILE:file/s@#@@' \
 		-e '/^HELPFILE:file/s@/PATH_TO/lynx_help@$(helpdir)@' \
 		-e '/^[A-Z_]*:/s@/PATH_TO/lynx_doc@$(docdir)@' \
 		-e '/^HELPFILE:file/s@$$@$(COMPRESS_EXT)@' \
 		-e '/^HELPFILE:file/s@$(COMPRESS_EXT)$(COMPRESS_EXT)$$@$(COMPRESS_EXT)@' \
-		$(LIBDIR)/lynx.tmp >$(LIBDIR)/lynx.cfg
-	chmod 644 $(LIBDIR)/lynx.cfg
+		$(LIBDIR)/lynx.tmp >$(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 : LYHelp.hin
 	@echo Constructing sed-script
@@ -407,8 +409,7 @@
 	PATH=$(srcdir):$$PATH; export PATH; $(SHELL) -c '$(srcdir)/cfg_defs.sh'
 
 install-cfg : $(LIBDIR)
-	-mv -f $(LIBDIR)/lynx.cfg $(LIBDIR)/lynx.oldcfg
-	$(INSTALL_DATA) $(srcdir)/lynx.cfg $(LIBDIR)/lynx.cfg
+	$(INSTALL_DATA) $(srcdir)/lynx.cfg $(LIBDIR)/lynx.cfg.default
 
 install-lss : $(LIBDIR)
 	-mv -f $(LIBDIR)/lynx.lss $(LIBDIR)/lynx.oldlss