Commit graph

7 commits

Author SHA1 Message Date
Giorgos Keramidas
300b30872d Trim '\r' and '\n' from filenames read from stdin.
The input line is printed in debug levels >= 4.  If it includes
the newline we read from stdin, debug messages include empty
lines, so this should keep the debug output a bit more compact.
2009-06-21 13:55:35 +00:00
Gabor Pali
0f1a3acc70 Add new features and their documentation to keramida's 'checkupdate'
utility:
- "compact mode": generate a compact report for commit logs
- "patch mode": the long awaited ``patch preview'' mode :) (supports
  both cvs and svn)
- "picky mode": a few enhancements for creating more reasonable reports
  (enabled by default, but one can turn them off)

Reviewed by:  keramida
Approved by:  keramida
2008-07-09 19:53:54 +00:00
Giorgos Keramidas
ee79bbf7a4 Add a -t (tuple mode) option to checkupdate.py, which switches
from preparsed human-readable output to printing a raw Python
tuples for each flist input file.  Manolis has post-processing
tools that can easily use this format, so this makes life easier
for him.
2008-06-16 21:53:10 +00:00
Giorgos Keramidas
22b14be34f checkupdate: Losen a bit the %SOURCE% path validation check.
It's to return a pathname that doesn't exist, so if it contains a
'/' character it's probably a valid path with a small typo.  Let
the rest of the script handle its non-existence, which it already
does fine.
2008-06-15 17:12:47 +00:00
Giorgos Keramidas
7477abce2e checkupdate: Add a new -e option that reports 'everything'.
When the -e option is enabled, report file revision information
for 'everything', including files that don't need a translation
update.
2008-06-15 16:36:55 +00:00
Giorgos Keramidas
c6689b0c3f checkupdate: only report the files that actually *need* updates
Instead of reporting all the files of our input file list, add a
few checks in checkinfo() to report only the files that may be of
interest to translators looking for something cool to do.
2008-06-15 16:28:48 +00:00
Giorgos Keramidas
70a69003cb Add a new Python-based utility we wrote for the FreeBSD Greek
documentation project (and anyone else interested to use it).
In the translated files, we have added special `tags' some time
in the past, using the format:

    %SOURCE%    en_GR.ISO8859-1/articles/foo/file.sgml
    %SRCID%     1.5

to denote that this translation was based on revision 1.5 of the
file referenced in `%SOURCE%'.

The `checkupdate' utility makes parsing and checking of these
tags easier.  It expects to receive a list of files to check in
standard input, so it can be run by typing:

    find el_GR.ISO8859-7 | checkupdate

This should report in standard output something like:

: el_GR.ISO8859-7/articles/compiz-fusion/Makefile rev. 1.1
:     1.1        -> 1.1         en_US.ISO8859-1/articles/compiz-fusion/Makefile
:
: el_GR.ISO8859-7/articles/compiz-fusion/article.sgml rev. 1.1
:     1.3        -> 1.5         en_US.ISO8859-1/articles/compiz-fusion/article.sgml

We will keep extending the `checkupdate.py' script to add more
features, like a "patch preview" mode.  The version committed
here works well enough for now, and it already shows a lot of
files that we have to update in el_GR.ISO8859-7 :)

Inspired by:    pgj's shell based version of `checkupdate'
2008-06-15 15:45:36 +00:00