1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00
This commit is contained in:
Kalle Olavi Niemitalo 2006-01-14 21:40:26 +02:00 committed by Kalle Olavi Niemitalo
commit e27289e456
7 changed files with 29 additions and 20 deletions

View File

@ -111,11 +111,13 @@ endif
%.o: $(srcdir)%.c %.o: $(srcdir)%.c
$(call mcmd,compile) $(call mcmd,compile)
@-cp .deps/$(*F).pp .deps/$(*F).P; \ @-if test -e .deps/$(*F).pp; then \
cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \ tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \ >> .deps/$(*F).P; \
rm .deps/$(*F).pp rm .deps/$(*F).pp; \
fi
CLEAN += $(PROG) $(OBJS) CLEAN += $(PROG) $(OBJS)

View File

@ -61,7 +61,7 @@ man: txt $(MAN_DOCS)
all-docs: man html pdf all-docs: man html pdf
install-doc: all-docs update-man install install-doc: all-docs update-man install
$(foreach doc,$(HTML_DOCS), \ @$(foreach doc,$(HTML_DOCS), \
if test -d $(doc); then \ if test -d $(doc); then \
$(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/html/$(doc); \ $(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/html/$(doc); \
$(call ncmd,installdata,$(doc)/*,$(HTML_DIR)/$(doc)); \ $(call ncmd,installdata,$(doc)/*,$(HTML_DIR)/$(doc)); \
@ -69,12 +69,12 @@ install-doc: all-docs update-man install
$(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/html; \ $(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/html; \
$(call ncmd,installdata,$(doc),$(HTML_DIR)); \ $(call ncmd,installdata,$(doc),$(HTML_DIR)); \
fi;) fi;)
$(foreach doc,$(PDF_DOCS), \ @$(foreach doc,$(PDF_DOCS), \
$(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/pdf; \ $(MKINSTALLDIRS) $(DESTDIR)$(docdir)/$(PACKAGE)/pdf; \
$(call ncmd,installdata,$(doc),$(PDF_DIR);)) $(call ncmd,installdata,$(doc),$(PDF_DIR);))
update-man: man update-man: man
$(if $(MAN_DOCS), \ @$(if $(MAN_DOCS), \
$(call ncmd,installdata,elinks.1,man/man1/elinks.1.in); \ $(call ncmd,installdata,elinks.1,man/man1/elinks.1.in); \
$(call ncmd,installdata,elinkskeys.5,man/man5/); \ $(call ncmd,installdata,elinkskeys.5,man/man5/); \
$(call ncmd,installdata,elinks.conf.5,man/man5/)) $(call ncmd,installdata,elinks.conf.5,man/man5/))
@ -93,7 +93,7 @@ install-local:
CODE2DOC = $(srcdir)tools/code2doc CODE2DOC = $(srcdir)tools/code2doc
HELP2DOC = $(srcdir)tools/help2doc HELP2DOC = $(srcdir)tools/help2doc
CONF2DOC = $(srcdir)tools/conf2doc CONF2DOC = $(srcdir)tools/conf2doc
KEYS2DOC = $(srcdir)tools/make-elinkskeys-manpage KEYS2DOC = $(srcdir)tools/keys2doc
ELINKS = $(top_builddir)/src/elinks ELINKS = $(top_builddir)/src/elinks
FEATURES = $(top_srcdir)/features.conf FEATURES = $(top_srcdir)/features.conf
KBDBIND = $(top_srcdir)/src/config/kbdbind.c KBDBIND = $(top_srcdir)/src/config/kbdbind.c
@ -177,19 +177,19 @@ man_hack = sed "s/^\(\.TH \"ELINKS[^\"]*\" [0-9] \).*/\1\"$(1)\" \"$(MAN_DATE)\"
%.html: %.txt asciidoc.conf %.html: %.txt asciidoc.conf
$(call cmd,asciidoc,xhtml11) $(call cmd,asciidoc,xhtml11)
$(call asciidoc_dep) @-$(call asciidoc_dep)
%.xml: %.txt asciidoc.conf %.xml: %.txt asciidoc.conf
$(call cmd,asciidoc,docbook) $(call cmd,asciidoc,docbook)
$(call asciidoc_dep) @-$(call asciidoc_dep)
%.1: %.1.xml %.1: %.1.xml
$(call cmd,xmlto,man) $(call cmd,xmlto,man)
$(call man_hack,$(call man_desc)) @$(call man_hack,$(call man_desc))
%.5: %.5.xml %.5: %.5.xml
$(call cmd,xmlto,man) $(call cmd,xmlto,man)
$(call man_hack,$(call man_desc)) @$(call man_hack,$(call man_desc))
%.html-chunked: %.xml %.html-chunked: %.xml
$(call cmd,xmlto,html,-o $@) $(call cmd,xmlto,html,-o $@)

View File

@ -15,6 +15,9 @@
# - typedef:[] # - typedef:[]
# - ref:[] # - ref:[]
[replacements]
(^|[^-])--($|[^-])=\1--\2
# Some macros can have optional {0} value, that is what # Some macros can have optional {0} value, that is what
# the {0%...} and {0#...} handles. # the {0%...} and {0#...} handles.

View File

@ -80,6 +80,16 @@ Some keys will need to be quoted or escaped. For example, space can be written
as `" "` (quote space quote), and the quote itself as `\"` (backslash quote). as `" "` (quote space quote), and the quote itself as `\"` (backslash quote).
Backslash can be written as `\\` (double backslash). Backslash can be written as `\\` (double backslash).
/////////////////////////////////////////////////////////////////////////////
FIXME:
- You may prefix each of these keys with a number, telling its repeat count
(how many times to do it). You can also re-bind keys, see elinkskeys(5) for
documentation and a more complete list of keys bound by default.
- The following keys can be used while editing a line/jumping to a URL
/////////////////////////////////////////////////////////////////////////////
KEYMAP ACTIONS KEYMAP ACTIONS
-------------- --------------

View File

@ -17,7 +17,7 @@
.el .ne 3 .el .ne 3
.IP "\\$1" \\$2 .IP "\\$1" \\$2
.. ..
.TH "ELINKS.CONF" 5 "ELinks configuration file" "2006-01-12" "ELinks configuration file" .TH "ELINKS.CONF" 5 "ELinks configuration file" "2006-01-14" "ELinks configuration file"
.SH NAME .SH NAME
elinks.conf \- ELinks configuration file elinks.conf \- ELinks configuration file
.SH "SYNOPSIS" .SH "SYNOPSIS"
@ -742,7 +742,7 @@ Prevent overwriting the local files:
0: is files will silently be overwritten 0: is files will silently be overwritten
.TP .TP
\(bu \(bu
1: is add a suffix \&.{number} (for example '\&.1') to the name
.TP .TP
\(bu \(bu
2: is ask the user 2: is ask the user

View File

@ -105,6 +105,7 @@ do
fi fi
line=`echo "$line" | sed -e "s/[ ]*(DISABLED)//"` line=`echo "$line" | sed -e "s/[ ]*(DISABLED)//"`
line=`echo "$line" | sed 's/\([{}]\)/\\\\\1/g'`
number= number=
if test -n "$parse_int_option"; if test -n "$parse_int_option";
then then

View File

@ -6,14 +6,6 @@
# Copyright (c) Jonas Fonseca <fonseca@diku.dk>, 2005-2006 # Copyright (c) Jonas Fonseca <fonseca@diku.dk>, 2005-2006
# #
# FIXME:
#
# - You may prefix each of these keys with a number, telling its repeat count
# (how many times to do it). You can also re-bind keys, see elinkskeys(5) for
# documentation and a more complete list of keys bound by default.
#
# - The following keys can be used while editing a line/jumping to a URL
KBDBIND=$1 KBDBIND=$1
CONFIGDIR=$(dirname "$KBDBIND") CONFIGDIR=$(dirname "$KBDBIND")
OUTPUT=$2 OUTPUT=$2
@ -22,6 +14,7 @@ test -d "$CONFIGDIR" || exit
print_title() print_title()
{ {
echo
echo "$1" | tr 'a-z' 'A-Z' echo "$1" | tr 'a-z' 'A-Z'
echo "$1" | sed 's/[^~]/~/g' echo "$1" | sed 's/[^~]/~/g'
echo echo