From ea43c3e5d01fbbb875a60c67d1ae27eaa6d1aea8 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 20 Feb 2022 17:09:40 +0300 Subject: [PATCH] redo-ifchange -f --- doc/news.texi | 9 +++++++++ main.go | 3 ++- usage.go | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/news.texi b/doc/news.texi index 1dbdb85..035acdc 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -1,6 +1,15 @@ @node News @unnumbered News +@anchor{Release 1_23_0} +@section Release 1.23.0 +@itemize +@item + @command{redo-ifchange}'s @option{-f} option forces each target + rebuilding. Comparing to @command{redo}, it will parallelize the + process. +@end itemize + @anchor{Release 1_22_0} @section Release 1.22.0 @itemize diff --git a/main.go b/main.go index f75edd4..3cc1a8f 100644 --- a/main.go +++ b/main.go @@ -87,6 +87,7 @@ func CmdName() string { } func main() { + forcedIfchange := flag.Bool("f", false, "forced redo-ifchange") version := flag.Bool("version", false, "print version") warranty := flag.Bool("warranty", false, "print warranty information") @@ -335,7 +336,7 @@ CmdSwitch: } } case CmdNameRedoIfchange: - ok, err = ifchange(tgts, false, traced) + ok, err = ifchange(tgts, *forcedIfchange, traced) if err == nil { err = depsWrite(fdDep, tgts) } diff --git a/usage.go b/usage.go index a436c46..3625634 100644 --- a/usage.go +++ b/usage.go @@ -24,7 +24,7 @@ import ( ) const ( - Version = "1.22.0" + Version = "1.23.0" Warranty = `Copyright (C) 2020-2022 Sergey Matveev This program is free software: you can redistribute it and/or modify -- 2.44.0