]> Cypherpunks.ru repositories - goredo.git/commitdiff
redo-ifchange -f
authorSergey Matveev <stargrave@stargrave.org>
Sun, 20 Feb 2022 14:09:40 +0000 (17:09 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 20 Feb 2022 14:09:40 +0000 (17:09 +0300)
doc/news.texi
main.go
usage.go

index 1dbdb859919482e084537ec75fcab612dae425d3..035acdc6601b63b59dea707645b33bf7ae1fd689 100644 (file)
@@ -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 f75edd4049a69d8cd50ca6fee27d5c8f64e36ff2..3cc1a8f3ba6588fae23675ef93e8ccaaf0f02542 100644 (file)
--- 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)
                }
index a436c46dde2cdafa218b35ab4752ccb8d8173dfe..3625634dfacf828523beaaf07e5debde6582d5d0 100644 (file)
--- 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