summaryrefslogtreecommitdiff
path: root/tool/lib/output.rb
Commit message (Collapse)AuthorAgeFilesLines
* Skip calling f.read for `overwrite: true`-only casesTakashi Kokubun2022-12-131-2/+4
| | | | We only need to set outpath for that case.
* Make sure f.read is not called twiceTakashi Kokubun2022-12-131-2/+5
| | | | | | | --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>
* Avoid overwriting revision.h when .git doesn't exist (#6915)Takashi Kokubun2022-12-121-3/+3
| | | | | * Avoid overwriting revision.h when .git doesn't exist * Overwrite revision.h if it's blank
* Try to overwrite the file in VPATH if possibleNobuyoshi Nakada2022-11-131-1/+2
|
* file2lastrev.rb: try to overwrite the found revision.h as beforeNobuyoshi Nakada2022-11-021-5/+8
|
* file2lastrev.rb: separate options for `Output` and `VPath`Nobuyoshi Nakada2022-11-021-0/+1
| | | | | So the `--srcdir` option in this file can override the same option in `VPath`.
* output.rb: extract from generic_erb.rbNobuyoshi Nakada2022-11-011-0/+47
- writing to a file or stdout - touching timestamp files - overwriting only if changed - colorizing