Commit graph

6 commits

Author SHA1 Message Date
Avery Pennarun
5c4f710f4e Raw logs contain @@REDO lines instead of formatted data.
This makes them more reliable to parse.  redo-log can parse each line,
format and print it, then recurse if necessary.  This got a little ugly
because I wanted 'redo --raw-logs' to work, which we want to format the
output nicely, but not call redo-log.

(As a result, --raw-logs has a different meaning to redo and
redo-log, which is kinda dumb.  I should fix that.)

As an added bonus, redo-log now handles indenting of recursive logs, so
if the build was a -> a/b -> a/b/c, and you look at the log for a/b, it
can still start at the top level indentation.
2018-11-17 10:27:44 -05:00
Avery Pennarun
60b34d81ec vars.do: an improvement on the previous patch.
It would still loop infinitely if a string was "master " (trailing space).
2011-02-17 01:05:52 -08:00
Henry Gebhardt
6508cc0a63 version/vars.do: avoid infinite loop if the tag string is " master"
(ie. with an extra space)
2011-02-15 15:12:53 -08:00
Avery Pennarun
5ea0cb01f5 version/gitvars: use redo-always if using git commands.
Otherwise we won't rebuild files when the commit id changes.
2011-01-18 00:55:25 -08:00
Tim Allen
204ac1411d Fix another "==" -> "=" bashism.
I notice it doesn't quite work on my Ubuntu system - if I "cd version"
and run "../redo", I get the following output:

   redo  all
   redo    vars
   redo      gitvars
   [: 24: %H: unexpected operator
   [: 24: %d: unexpected operator
   [: 24: %ci: unexpected operator

...and then a hang.
2011-01-18 00:48:51 -08:00
Avery Pennarun
94b34ea031 Generate redo version codes in Documentation/*.1 automatically.
We have to go through some pretty scary gyrations to extract this
information from git, but it can be done.  This works with both tarballs
generated by 'git archive', or with your local git repo.

(Requested by 'David' on the mailing list.)
2011-01-17 23:01:40 -08:00