}
func parseBuildLogRec(dir, tgt string) (map[string][]string, error) {
- fd, err := os.Open(path.Join(dir, RedoDir, tgt+LogSuffix+DepSuffix))
+ fd, err := os.Open(path.Join(dir, RedoDir, tgt+LogRecSuffix))
if err != nil {
return nil, err
}
switch what {
case CleanupLog:
if strings.HasSuffix(fi.Name(), LogSuffix) ||
- strings.HasSuffix(fi.Name(), LogSuffix+DepSuffix) {
+ strings.HasSuffix(fi.Name(), LogRecSuffix) {
fmt.Println(pth)
if !*DryRun {
if err = os.Remove(pth); err != nil {
@node News
@unnumbered News
+@anchor{Release 1_13_0}
+@section Release 1.13.0
+@itemize
+@item
+ Use @file{.log-rec} extension, instead of @file{.log.rec}, that
+ won't collide with already existing @file{.log} and @file{.rec} in
+ @file{.redo} directory.
+@end itemize
+
@anchor{Release 1_12_0}
@section Release 1.12.0
@itemize
EnvStderrSilent = "REDO_SILENT"
EnvNoSync = "REDO_NO_SYNC"
- RedoDir = ".redo"
- LockSuffix = ".lock"
- DepSuffix = ".rec"
- TmpPrefix = ".redo."
- LogSuffix = ".log"
+ RedoDir = ".redo"
+ LockSuffix = ".lock"
+ DepSuffix = ".rec"
+ TmpPrefix = ".redo."
+ LogSuffix = ".log"
+ LogRecSuffix = ".log-rec"
)
var (
fdStdout.Close()
if fdStderr != nil {
fdStderr.Close()
- logRecPath := path.Join(redoDir, tgt+LogSuffix+DepSuffix)
+ logRecPath := path.Join(redoDir, tgt+LogRecSuffix)
if fdStderr, err = os.OpenFile(
logRecPath,
os.O_WRONLY|os.O_CREATE|os.O_TRUNC,
)
const (
- Version = "1.12.0"
+ Version = "1.13.0"
Warranty = `Copyright (C) 2020-2021 Sergey Matveev
This program is free software: you can redistribute it and/or modify