blob: f0c4bf9f1c76d8575816f6534ab941f50b0fecc7 (
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
|
--- makefile.in.orig 2006-09-03 19:25:39.000000000 -0400
+++ makefile.in 2009-08-08 04:44:18.000000000 -0400
@@ -361,12 +361,12 @@
(cd $(HELPDIR) && $(COMPRESS_PROG) $$files ) \
fi'
@echo Updating $(sysconfdir)/lynx.cfg
- @ECHO_CC@$(SHELL) -c 'if test -f $(SYSCONFDIR)/lynx.cfg ; then \
- mv $(SYSCONFDIR)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \
+ @ECHO_CC@$(SHELL) -c 'if test -f $(SYSCONFDIR)/lynx.cfg.sample ; then \
+ mv $(SYSCONFDIR)/lynx.cfg.sample $(SYSCONFDIR)/lynx.tmp ; \
else \
cp $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \
fi'
- @echo Updating $(sysconfdir)/lynx.cfg to point to installed help-files
+ @echo Updating $(SYSCONFDIR)/lynx.cfg.sample to point to installed help-files
@ECHO_CC@sed -e '/^HELPFILE:http/s!^!#!' \
-e '/^#HELPFILE:file/s!#!!' \
$(SYSCONFDIR)/lynx.tmp | \
@@ -374,9 +374,11 @@
$(SHELL) $(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)!' \
- >$(SYSCONFDIR)/lynx.cfg
- chmod 644 $(SYSCONFDIR)/lynx.cfg
+ >$(SYSCONFDIR)/lynx.cfg.sample
+ chmod 644 $(SYSCONFDIR)/lynx.cfg.sample
-rm -f $(SYSCONFDIR)/lynx.tmp
+ -[ ! -f $(SYSCONFDIR)/lynx.cfg ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.cfg.sample $(SYSCONFDIR)/lynx.cfg
+ -[ ! -f $(SYSCONFDIR)/lynx.lss ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.lss.sample $(SYSCONFDIR)/lynx.lss
LYHelp.h : help_files.sed LYHelp.hin
@echo Creating $@
@@ -398,18 +400,17 @@
$(SHELL) -c 'SHELL=$(SHELL) $(SHELL) $(scripts_dir)/cfg_defs.sh $(srcdir)'
install-cfg : $(SYSCONFDIR)
- @$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg
+ @$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg.sample
install-lss : $(SYSCONFDIR)
- -mv -f $(SYSCONFDIR)/lynx.lss $(SYSCONFDIR)/lynx.oldlss
- $(INSTALL_DATA) $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss
+ @$(INSTALL_DATA) $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss.sample
uninstall ::
@MSG_DIR_MAKE@ cd po && $(MAKE) CC="$(CC)" uninstall
-rm -f $(BINDIR)/lynx$x
-rm -f $(MANDIR)/lynx.1
- -rm -f $(SYSCONFDIR)/lynx.cfg
- -rm -f $(SYSCONFDIR)/lynx.lss
+ -rm -f $(SYSCONFDIR)/lynx.cfg.sample
+ -rm -f $(SYSCONFDIR)/lynx.lss.sample
uninstall \
uninstall-help ::
|