Nobuyoshi Nakada
|
05d681f91e
|
Make Output.new accepts keyword arguments
|
2024-04-19 14:12:42 +09:00 |
|
Nobuyoshi Nakada
|
129663c4a8
|
tool/lib/output.rb: Make --color option like GNU coreutils
|
2023-08-23 19:40:56 +09:00 |
|
Nobuyoshi Nakada
|
de4a1ca792
|
tool/lib/output.rb: Add --create-only and --overwrite options
|
2023-08-23 19:40:56 +09:00 |
|
Nobuyoshi Nakada
|
f1c6da65f4
|
tool/lib/output.rb: Add --no-color option
|
2023-08-23 19:40:55 +09:00 |
|
Takashi Kokubun
|
3262842e0a
|
Skip calling f.read for overwrite: true -only cases
We only need to set outpath for that case.
|
2022-12-13 00:25:02 -08:00 |
|
Takashi Kokubun
|
5ba9dcff16
|
Make sure f.read is not called twice
--revision.h and --if-change are not used simultaneously, but they might
be in the future.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
|
2022-12-13 00:17:47 -08:00 |
|
Takashi Kokubun
|
7edcdc380f
|
Avoid overwriting revision.h when .git doesn't exist (#6915)
* Avoid overwriting revision.h when .git doesn't exist
* Overwrite revision.h if it's blank
|
2022-12-12 23:34:30 -08:00 |
|
Nobuyoshi Nakada
|
70c9d5b504
|
Try to overwrite the file in VPATH if possible
|
2022-11-13 18:05:11 +09:00 |
|
Nobuyoshi Nakada
|
3475b66160
|
file2lastrev.rb: try to overwrite the found revision.h as before
|
2022-11-02 12:38:31 +09:00 |
|
Nobuyoshi Nakada
|
ac06951c31
|
file2lastrev.rb: separate options for Output and VPath
So the `--srcdir` option in this file can override the same option in
`VPath`.
|
2022-11-02 12:38:03 +09:00 |
|
Nobuyoshi Nakada
|
a2e7b11f2a
|
output.rb: extract from generic_erb.rb
- writing to a file or stdout
- touching timestamp files
- overwriting only if changed
- colorizing
|
2022-11-01 14:34:05 +09:00 |
|