Age | Commit message (Collapse) | Author |
|
git-svn-id: svn://tug.org/texlive/trunk@71654 c570f23f-e606-0410-a88d-b1316a301751
|
|
This reverts commit 9e10d9728a3a121dfeb2c951045fe6c6cf7396e0.
git-svn-id: svn://tug.org/texlive/trunk@71652 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71649 c570f23f-e606-0410-a88d-b1316a301751
|
|
No need to store the file handles in 'self'.
git-svn-id: svn://tug.org/texlive/trunk@71644 c570f23f-e606-0410-a88d-b1316a301751
|
|
'next_line()' returns the 'part, section, line_number' of the line
returned. (Note the exception for CWEB's '@i'nclude command.)
Also, fix a section number in 'gftype.ch'. (All other observed change
files are unaffected from the recent changes to 'f-c-l'.)
git-svn-id: svn://tug.org/texlive/trunk@71640 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71639 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71638 c570f23f-e606-0410-a88d-b1316a301751
|
|
"In every large program there's a small one struggling to get out."
Back to basics (Thanks, Tyge!), with just enough flexibility. In this
reduced form, 'f-c-l' handles 'tex.ch', 'ctie-k.ch', 'tie-w2c.ch',
'weave.ch' and the whole slew of CWEB's '*-w2c.ch' monsters correctly.
Plus it corrects a few tags in 'bibtex.ch' just for fun.
git-svn-id: svn://tug.org/texlive/trunk@71613 c570f23f-e606-0410-a88d-b1316a301751
|
|
're.sub()' does the right thing: When the 'pattern' doesn't 'match', it
simply returns the (unmodified) string.
git-svn-id: svn://tug.org/texlive/trunk@71607 c570f23f-e606-0410-a88d-b1316a301751
|
|
Handle the disection of 'old_line' and the assembly of 'new_line'
simultaneously under the control of the command-line options.
git-svn-id: svn://tug.org/texlive/trunk@71606 c570f23f-e606-0410-a88d-b1316a301751
|
|
Now we can update changefiles that only have 'l.NNN' line numbers,
without duplicating these (as part of the 'text').
git-svn-id: svn://tug.org/texlive/trunk@71604 c570f23f-e606-0410-a88d-b1316a301751
|
|
This reverts commit bb3967e5add1994021eb0374d48aa8cbcc2dad0e.
Oops, the 'self._pos += 1' shifts things badly.
git-svn-id: svn://tug.org/texlive/trunk@71600 c570f23f-e606-0410-a88d-b1316a301751
|
|
The author of the change most likely mistyped @y for @z.
Note that we can not catch an @x in place of @z at this time. The f-c-l
script starts a change hunk whenever it encounters @x. Only a second @x
triggers an error---in slight deviation from CWEB's behavior.
git-svn-id: svn://tug.org/texlive/trunk@71599 c570f23f-e606-0410-a88d-b1316a301751
|
|
We could
(a) calculate the distance of a mismatch and print
"! Hmm... N of the preceeding lines failed to match."
(b) issue a warning/error about a missing @z.
git-svn-id: svn://tug.org/texlive/trunk@71598 c570f23f-e606-0410-a88d-b1316a301751
|
|
'WebReader.next_line()' will never set 'tex_line' to 'None' of its own.
In the case that it reaches the end of the '_web_lines' array---say the
change expects more lines after the last line in the original file---,
it returns a single 'None' that gets assigned to the '(p,s,l)' triplet.
However, the 'tex_line' is not changed and still holds the last matching
line from an earlier 'next_line()' (either in the 'for' loop or in the
'while' loop).
We assign 'tex_line = None' when catching the 'TypeError' exception,
because the author of the change file might accidentally duplicate a
line in the '@x..@y' part of the change hunk.
git-svn-id: svn://tug.org/texlive/trunk@71597 c570f23f-e606-0410-a88d-b1316a301751
|
|
The simple 'return None' does not suit the assignment to the complex
'(part, section, line_number), tex_line' and raises a 'TypeError'
exception.
git-svn-id: svn://tug.org/texlive/trunk@71596 c570f23f-e606-0410-a88d-b1316a301751
|
|
A few changes to 'fix-changefile-lines.py':
* Print 'Old:' vs 'New:' differences to 'stderr'.
* Avoid double space when using option '-h'.
git-svn-id: svn://tug.org/texlive/trunk@71555 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71541 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71540 c570f23f-e606-0410-a88d-b1316a301751
|
|
'main()' does not mainly deal with the options. Use OptHandler class.
Extended USAGE message including the set of options and their purpose.
git-svn-id: svn://tug.org/texlive/trunk@71539 c570f23f-e606-0410-a88d-b1316a301751
|
|
weave.ch has '[148]' at the end of an '@x' line; don't mess with this.
git-svn-id: svn://tug.org/texlive/trunk@71531 c570f23f-e606-0410-a88d-b1316a301751
|
|
E.g., 'fix-changefile-lines -hlp dvicopy.{wen,ch}' prints only
'@x [section] text' lines. ('[137/138]' was replaced with '[137]'.)
git-svn-id: svn://tug.org/texlive/trunk@71530 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71460 c570f23f-e606-0410-a88d-b1316a301751
|
|
Section 'Index' of COMMON.W is on Level 1, not 0.
git-svn-id: svn://tug.org/texlive/trunk@71459 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71451 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71450 c570f23f-e606-0410-a88d-b1316a301751
|
|
Apply some OO/C++ knowledge from the late nineties.
git-svn-id: svn://tug.org/texlive/trunk@71449 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71442 c570f23f-e606-0410-a88d-b1316a301751
|
|
The initial regex was too gready.
git-svn-id: svn://tug.org/texlive/trunk@71440 c570f23f-e606-0410-a88d-b1316a301751
|
|
Only replace leading '-' in @x comments.
Also fix special case "@
@c" (with or without following space after '@').
git-svn-id: svn://tug.org/texlive/trunk@71439 c570f23f-e606-0410-a88d-b1316a301751
|
|
Both WEAVE.WEB and TANGLE.WEB have '@*' and '@ ' markers in their
exposition. Only those at the beginning of a 'line' count.
Make the 'fix-changefile-lines.py' self-executable (on Linux).
git-svn-id: svn://tug.org/texlive/trunk@71437 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@71417 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@70774 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@70752 c570f23f-e606-0410-a88d-b1316a301751
|
|
and xetex only)
git-svn-id: svn://tug.org/texlive/trunk@70173 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@69656 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@69208 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@68953 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@68508 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67993 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67990 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@66702 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@66168 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@65831 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@65380 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@65338 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@65335 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@65331 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@65330 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@64276 c570f23f-e606-0410-a88d-b1316a301751
|