My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
Changes to /doc-src/manual/index.sh
40f8a062f5cb vs. 81c22766a045 Compare: vs.  Format:
Revision 81c22766a045
Go to: 
Project members, sign in to write a code review
/doc-src/manual/index.sh   40f8a062f5cb /doc-src/manual/index.sh   81c22766a045
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # replace 3 # replace
4 # ``foo()`` 4 # ``foo()``
5 # with a link to foo 5 # with a link to foo
6 # `foo() <api/redirect.html#lepl.foo>`_ 6 # `foo() <api/redirect.html#lepl.foo>`_
7 7
8 #sed -i -r 's/``(Delayed|Literal|Columns|And|Or|Any|OperatorMatcher)\(\)``/`\1() <api\/redirect.html#lepl.matchers.\1>`_/g' *.rst 8 #sed -i -r 's/``(Delayed|Literal|Columns|And|Or|Any|OperatorMatcher)\(\)``/`\1() <api\/redirect.html#lepl.matchers.\1>`_/g' *.rst
9 #sed -i -r 's/``(Letter|Digit|Rexgexp|args|SkipTo|SignedFloat|Literal|Drop|Star|Space|Eos)\(\)``/`\1() <api\/redirect.html#lepl.functions.\1>`_/g' *.rst 9 #sed -i -r 's/``(Letter|Digit|Rexgexp|args|SkipTo|SignedFloat|Literal|Drop|Star|Space|Eos)\(\)``/`\1() <api\/redirect.html#lepl.functions.\1>`_/g' *.rst
10 #sed -i -r 's/``(Node)\(\)``/`\1() <api\/redirect.html#lepl.node.\1>`_/g' *.rst 10 #sed -i -r 's/``(Node)\(\)``/`\1() <api\/redirect.html#lepl.node.\1>`_/g' *.rst
11 #sed -i -r 's/``(Separator|SmartSeparator1)\(\)``/`\1() <api\/redirect.html#lepl.operators.\1>`_/g' *.rst 11 #sed -i -r 's/``(Separator|SmartSeparator1)\(\)``/`\1() <api\/redirect.html#lepl.operators.\1>`_/g' *.rst
12 #sed -i -r 's/``(TraceResults)\(\)``/`\1() <api\/redirect.html#lepl.trace.\1>`_/g' *.rst 12 #sed -i -r 's/``(TraceResults)\(\)``/`\1() <api\/redirect.html#lepl.trace.\1>`_/g' *.rst
13 #sed -i -r 's/``(SmartSeparator2)\(\)``/`\1() <api\/redirect.html#lepl.contrib.matchers.\1>`_/g' *.rst 13 #sed -i -r 's/``(SmartSeparator2)\(\)``/`\1() <api\/redirect.html#lepl.contrib.matchers.\1>`_/g' *.rst
14 #sed -i -r 's/``(Token)\(\)``/`\1() <api\/redirect.html#lepl.lexer.matchers.\1>`_/g' *.rst 14 #sed -i -r 's/``(Token)\(\)``/`\1() <api\/redirect.html#lepl.lexer.matchers.\1>`_/g' *.rst
15 #sed -i -r 's/``(BitString|Int)\(\)``/`\1() <api\/redirect.html#lepl.bin.bits.\1>`_/g' *.rst 15 #sed -i -r 's/``(BitString|Int)\(\)``/`\1() <api\/redirect.html#lepl.bin.bits.\1>`_/g' *.rst
16 #sed -i -r 's/``(Const|BEnd|LEnd)\(\)``/`\1() <api\/redirect.html#lepl.bin.matchers.\1>`_/g' *.rst 16 #sed -i -r 's/``(Const|BEnd|LEnd)\(\)``/`\1() <api\/redirect.html#lepl.bin.matchers.\1>`_/g' *.rst
17 #sed -i -r 's/``(Configuration)\(\)``/`\1() <api\/redirect.html#lepl.config.\1>`_/g' *.rst 17 #sed -i -r 's/``(Configuration)\(\)``/`\1() <api\/redirect.html#lepl.config.\1>`_/g' *.rst
18 #sed -i -r 's/``(DfaRegexp|NfaRegexp)\(\)``/`\1() <api\/redirect.html#lepl.regexp.matchers.\1>`_/g' *.rst 18 #sed -i -r 's/``(DfaRegexp|NfaRegexp)\(\)``/`\1() <api\/redirect.html#lepl.regexp.matchers.\1>`_/g' *.rst
19 #sed -i -r 's/``(Line|Block|BLine|ContinuedLineFactory|ContinuedBLineFactory|Extend|SOL|EOL)\(\)``/`\1() <api\/redirect.html#lepl.offside.matchers.\1>`_/g' *.rst 19 #sed -i -r 's/``(Line|Block|BLine|ContinuedLineFactory|ContinuedBLineFactory|Extend|SOL|EOL)\(\)``/`\1() <api\/redirect.html#lepl.offside.matchers.\1>`_/g' *.rst
20 #sed -i -r 's/``(Indent|Eol|BIndent)\(\)``/`\1() <api\/redirect.html#lepl.offside.lexer.\1>`_/g' *.rst 20 #sed -i -r 's/``(Indent|Eol|BIndent)\(\)``/`\1() <api\/redirect.html#lepl.offside.lexer.\1>`_/g' *.rst
21 #sed -i -r 's/``(LineAwareConfiguration|IndentConfiguration|OffsideConfiguration)\(\)``/`\1() <api\/redirect.html#lepl.offside.config.\1>`_/g' *.rst 21 #sed -i -r 's/``(LineAwareConfiguration|IndentConfiguration|OffsideConfiguration)\(\)``/`\1() <api\/redirect.html#lepl.offside.config.\1>`_/g' *.rst
22 22
23 # fix up old errors 23 # fix up old errors
24 #sed -i -e 's/redirect\/html/redirect.html/g' *.rst 24 #sed -i -e 's/redirect\/html/redirect.html/g' *.rst
25 #sed -i -r 's/matchers\.(AnyBut|Optional|Star|ZeroOrMore|Plus|OneOrMore|Map|Add|Substitute|Name|Eos|Identity|Newline|Space|Whitespace|Digit|Letter|Upper|Lower|Printable|Punctuation|UnsignedInteger|SignedInteger|Integer|UnsignedFloat|SignedFloat|SignedEFloat|Float|Word|String||Drop)/functions.\1/g' *.rst 25 #sed -i -r 's/matchers\.(AnyBut|Optional|Star|ZeroOrMore|Plus|OneOrMore|Map|Add|Substitute|Name|Eos|Identity|Newline|Space|Whitespace|Digit|Letter|Upper|Lower|Printable|Punctuation|UnsignedInteger|SignedInteger|Integer|UnsignedFloat|SignedFloat|SignedEFloat|Float|Word|String||Drop)/functions.\1/g' *.rst
26 #sed -i -r 's/functions\.(And|Or|Literal|Columns|Lookahead|Commit|Delayed|Empty|Eof|First|Regexp|Trace)/matchers.\1/g' *.rst 26 #sed -i -r 's/functions\.(And|Or|Literal|Columns|Lookahead|Commit|Delayed|Empty|Eof|First|Regexp|Trace)/matchers.\1/g' *.rst
27 #sed -i -r 's/lepl\.contrib\.functions\.SmartSeparator2/lepl.contrib.matchers.SmartSeparator2/g' *.rst 27 #sed -i -r 's/lepl\.contrib\.functions\.SmartSeparator2/lepl.contrib.matchers.SmartSeparator2/g' *.rst
28 #sed -i -r 's/lepl\.offside\.matchers\.(LineAwareConfiguration|IndentConfiguration|OffsideConfiguration)/lepl.offside.config.\1/g' *.rst 28 #sed -i -r 's/lepl\.offside\.matchers\.(LineAwareConfiguration|IndentConfiguration|OffsideConfiguration)/lepl.offside.config.\1/g' *.rst
29 #sed -i -r 's/lepl\.bin\.config\.(Configuration)/lepl.config.\1/g' *.rst 29 #sed -i -r 's/lepl\.bin\.config\.(Configuration)/lepl.config.\1/g' *.rst
30 #sed -i -r 's/lepl\.lexer\.matchers\.(Indent|Eol|BIndent)/lepl.offside.lexer.\1/g' *.rst 30 #sed -i -r 's/lepl\.lexer\.matchers\.(Indent|Eol|BIndent)/lepl.offside.lexer.\1/g' *.rst
31 31
32 32
33 #sed -i -r 's/LEPL/Lepl/g' *.rst 33 #sed -i -r 's/LEPL/Lepl/g' *.rst
34 34
35 35
36 # lepl 4 fixes 36 # lepl 4 fixes
37 sed -i -r 's/lepl\.(Word|Integer)/lepl.matchers.derived.\1/g' *.rst 37 sed -i -r 's/lepl\.(Word|Integer)/lepl.matchers.derived.\1/g' *.rst
38 sed -i -r 's/lepl\.(And|Or)/lepl.matchers.combine.\1/g' *.rst 38 sed -i -r 's/lepl\.(And|Or)/lepl.matchers.combine.\1/g' *.rst
39 sed -i -r 's/lepl\.(functions|matchers|match)\.(And|Or)/lepl.matchers.combine.\2/g' *.rst 39 sed -i -r 's/lepl\.(functions|matchers|match)\.(And|Or)/lepl.matchers.combine.\2/g' *.rst
40 sed -i -r 's/lepl\.(functions|matchers)\.(SignedFloat|Drop|Space|Star|Optional|Letter|Digit|args|Eos|Apply|KApply|Add|AnyBut|Columns|Eos|Float|Identity|Integer|Lower|Map|Name|Newline|OneOrMore|Plus|Printable|Punctuation|SignedEFloat|SignedFloat|SignedInteger|SkipTo|String|Substitute|UnsignedFloat|UnsignedInteger|Upper|Whitespace|Word|ZeroOrMore|Repeat)/lepl.matchers.derived.\2/g' *.rst 40 sed -i -r 's/lepl\.(functions|matchers)\.(SignedFloat|Drop|Space|Star|Optional|Letter|Digit|args|Eos|Apply|KApply|Add|AnyBut|Columns|Eos|Float|Identity|Integer|Lower|Map|Name|Newline|OneOrMore|Plus|Printable|Punctuation|SignedEFloat|SignedFloat|SignedInteger|SkipTo|String|Substitute|UnsignedFloat|UnsignedInteger|Upper|Whitespace|Word|ZeroOrMore|Repeat)/lepl.matchers.derived.\2/g' *.rst
41 sed -i -r 's/lepl\.matchers\.(And|Or|First)/lepl.matchers.combine.\1/g' *.rst 41 sed -i -r 's/lepl\.matchers\.(And|Or|First)/lepl.matchers.combine.\1/g' *.rst
42 sed -i -r 's/lepl\.(functions|matchers)\.(Literal|Regexp|Delayed|Lookahead|Empty|Eof)/lepl.matchers.core.\2/g' *.rst 42 sed -i -r 's/lepl\.(functions|matchers)\.(Literal|Regexp|Delayed|Lookahead|Empty|Eof)/lepl.matchers.core.\2/g' *.rst
43 sed -i -r 's/lepl\.matchers\.(Commit|Trace)/lepl.matchers.monitor.\1/g' *.rst 43 sed -i -r 's/lepl\.matchers\.(Commit|Trace)/lepl.matchers.monitor.\1/g' *.rst
44 sed -i -r 's/lepl\.match\.(Commit|Trace)/lepl.matchers.monitor.\1/g' *.rst 44 sed -i -r 's/lepl\.match\.(Commit|Trace)/lepl.matchers.monitor.\1/g' *.rst
45 sed -i -r 's/lepl\.memo\.(LMemo|RMemo)/lepl.matchers.memo.\1/g' *.rst 45 sed -i -r 's/lepl\.memo\.(LMemo|RMemo)/lepl.matchers.memo.\1/g' *.rst
46 sed -i -r 's/lepl\.operators\.([A-Za-z]+)/lepl.matchers.operators.\1/g' *.rst 46 sed -i -r 's/lepl\.operators\.([A-Za-z]+)/lepl.matchers.operators.\1/g' *.rst
47 sed -i -r 's/lepl\.lexer\.functions\.(Token)/lepl.lexer.matchers.\1/g' *.rst 47 sed -i -r 's/lepl\.lexer\.functions\.(Token)/lepl.lexer.matchers.\1/g' *.rst
48 sed -i -r 's/lepl\.node\.(Node|make_dict)/lepl.support.node.\1/g' *.rst 48 sed -i -r 's/lepl\.node\.(Node|make_dict)/lepl.support.node.\1/g' *.rst
49 sed -i -r 's/lepl\.node\.(Error|throw|make_error)/lepl.matchers.error.\1/g' *.rst 49 sed -i -r 's/lepl\.node\.(Error|throw|make_error)/lepl.matchers.error.\1/g' *.rst
50 50
51 # lepl 4 direct 51 # lepl 4 direct
52 sed -i -r 's/``(SignedFloat|Drop|Space|Star|Optional|Letter|Digit|args|Eos|Word|Integer|Apply|KApply|Add|AnyBut|Columns|Eos|Float|Identity|Integer|Lower|Map|Name|Newline|OneOrMore|Plus|Printable|Punctuation|SignedEFloat|SignedFloat|SignedInteger|SkipTo|String|Substitute|UnsignedFloat|UnsignedInteger|Upper|Whitespace|Word|ZeroOrMore|Repeat)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.derived.\1>`_/g' *.rst 52 sed -i -r 's/``(SignedFloat|Drop|Space|Star|Optional|Letter|Digit|args|Eos|Word|Integer|Apply|KApply|Add|AnyBut|Columns|Eos|Float|Identity|Integer|Lower|Map|Name|Newline|OneOrMore|Plus|Printable|Punctuation|SignedEFloat|SignedFloat|SignedInteger|SkipTo|String|Substitute|UnsignedFloat|UnsignedInteger|Upper|Whitespace|Word|ZeroOrMore|Repeat|UnsignedReal|SignedReal|UnsignedEReal|SignedEReal|Real)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.derived.\1>`_/g' *.rst
53 sed -i -r 's/``(And|Or|First)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.combine.\1>`_/g' *.rst 53 sed -i -r 's/``(And|Or|First)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.combine.\1>`_/g' *.rst
54 sed -i -r 's/``(Literal|Regexp|Delayed|Lookahead|Empty|Eof)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.core.\1>`_/g' *.rst 54 sed -i -r 's/``(Literal|Regexp|Delayed|Lookahead|Empty|Eof)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.core.\1>`_/g' *.rst
55 sed -i -r 's/``(LMemo|RMemo)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.memo.\1>`_/g' *.rst 55 sed -i -r 's/``(LMemo|RMemo)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.memo.\1>`_/g' *.rst
56 sed -i -r 's/``(DroppedSpace|Separator)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.operators.\1>`_/g' *.rst 56 sed -i -r 's/``(DroppedSpace|Separator)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.operators.\1>`_/g' *.rst
57 sed -i -r 's/``(OperatorMatcher)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.support.\1>`_/g' *.rst 57 sed -i -r 's/``(OperatorMatcher)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.support.\1>`_/g' *.rst
58 sed -i -r 's/``(Error|make_error|raise_error)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.error.\1>`_/g' *.rst 58 sed -i -r 's/``(Error|make_error|raise_error)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.matchers.error.\1>`_/g' *.rst
59 sed -i -r 's/``(Token)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.lexer.matchers.\1>`_/g' *.rst 59 sed -i -r 's/``(Token)(\([^\)]*\))``/`\1\2 <api\/redirect.html#lepl.lexer.matchers.\1>`_/g' *.rst
60 sed -i -r 's/``(Node|make_dict|node_throw)\(\)``/`\1() <api\/redirect.html#lepl.support.node.\1>`_/g' *.rst 60 sed -i -r 's/``(Node|make_dict|node_throw)\(\)``/`\1() <api\/redirect.html#lepl.support.node.\1>`_/g' *.rst
61 sed -i -r 's/``(List|sexpr_fold|sexpr_flatten|sexpr_to_tree|sexpr_throw)\(\)``/`\1() <api\/redirect.html#lepl.support.list.\1>`_/g' *.rst 61 sed -i -r 's/``(List|sexpr_fold|sexpr_flatten|sexpr_to_tree|sexpr_throw)\(\)``/`\1() <api\/redirect.html#lepl.support.list.\1>`_/g' *.rst
62 sed -i -r 's/``(ConstructorGraphNode)\(\)``/`\1() <api\/redirect.html#lepl.support.graph.\1>`_/g' *.rst 62 sed -i -r 's/``(ConstructorGraphNode)\(\)``/`\1() <api\/redirect.html#lepl.support.graph.\1>`_/g' *.rst
63 sed -i -r 's/``(.config\.)([^\. ]+)(\([^\)]*\))``/`\1\2\3 <api\/redirect.html#lepl.core.config.ConfigBuilder.\2>`_/g' *.rst 63 sed -i -r 's/``(.config\.)([^\. ]+)(\([^\)]*\))``/`\1\2\3 <api\/redirect.html#lepl.core.config.ConfigBuilder.\2>`_/g' *.rst
64 sed -i -r 's/``(matcher\.)([^\. ]+)\(\)``/`\1\2() <api\/redirect.html#lepl.core.config.ParserMixin.\2>`_/g' *.rst 64 sed -i -r 's/``(matcher\.)([^\. ]+)\(\)``/`\1\2() <api\/redirect.html#lepl.core.config.ParserMixin.\2>`_/g' *.rst
65 sed -i -r 's/``(rightmost)\(\)``/`\1() <api\/redirect.html#lepl.offside.matchers.\1>`_/g' *.rst 65 sed -i -r 's/``(rightmost)\(\)``/`\1() <api\/redirect.html#lepl.offside.matchers.\1>`_/g' *.rst
66 sed -i -r 's/``(make_str_parser)\(\)``/`\1() <api\/redirect.html#lepl.regexp.str.\1>`_/g' *.rst 66 sed -i -r 's/``(make_str_parser)\(\)``/`\1() <api\/redirect.html#lepl.regexp.str.\1>`_/g' *.rst
67 sed -i -r 's/``@(function_matcher|sequence_matcher|trampoline_matcher|function_matcher_factory|sequence_matcher_factory|trampoline_matcher_factory)``/`@\1 <api\/redirect.html#lepl.matchers.support.\1>`_/g' *.rst 67 sed -i -r 's/``@(function_matcher|sequence_matcher|trampoline_matcher|function_matcher_factory|sequence_matcher_factory|trampoline_matcher_factory)``/`@\1 <api\/redirect.html#lepl.matchers.support.\1>`_/g' *.rst
68 sed -i -r 's/``(TraceResults|RecordDeepest)\(\)``/`\1() <api\/redirect.html#lepl.core.trace.\1>`_/g' *.rst 68 sed -i -r 's/``(TraceResults|RecordDeepest)\(\)``/`\1() <api\/redirect.html#lepl.core.trace.\1>`_/g' *.rst
69 sed -i -r 's/``(Email|HttpUrl|MailToUrl)\(\)``/`\1() <api\/redirect.html#lepl.apps.rfc3696.\1>`_/g' *.rst 69 sed -i -r 's/``(Email|HttpUrl|MailToUrl)\(\)``/`\1() <api\/redirect.html#lepl.apps.rfc3696.\1>`_/g' *.rst
Powered by Google Project Hosting