From 368922086630cdcf1980d372006eb4bf6b459d5a Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 1 Aug 2021 14:36:19 +0300 Subject: [PATCH] redo-cleanup clean .log.rec --- cleanup.go | 3 ++- doc/news.texi | 7 +++++++ usage.go | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cleanup.go b/cleanup.go index 52f1496..dff0ee0 100644 --- a/cleanup.go +++ b/cleanup.go @@ -65,7 +65,8 @@ func redoDirClean(root, what string) error { pth = cwdMustRel(root, fi.Name()) switch what { case CleanupLog: - if strings.HasSuffix(fi.Name(), LogSuffix) { + if strings.HasSuffix(fi.Name(), LogSuffix) || + strings.HasSuffix(fi.Name(), LogSuffix+DepSuffix) { fmt.Println(pth) if !*DryRun { if err = os.Remove(pth); err != nil { diff --git a/doc/news.texi b/doc/news.texi index eeeb507..a839bb1 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -1,6 +1,13 @@ @node News @unnumbered News +@anchor{Release 1_10_0} +@section Release 1.10.0 +@itemize +@item + @command{redo-cleanup} now also cleans @file{.redo/tgt.log.rec} files. +@end itemize + @anchor{Release 1_9_0} @section Release 1.9.0 @itemize diff --git a/usage.go b/usage.go index 59f2e90..f438426 100644 --- a/usage.go +++ b/usage.go @@ -24,7 +24,7 @@ import ( ) const ( - Version = "1.9.0" + Version = "1.10.0" Warranty = `Copyright (C) 2020-2021 Sergey Matveev This program is free software: you can redistribute it and/or modify -- 2.44.0