From: Alexandre Oliva Date: Thu, 29 Oct 2020 21:46:29 +0000 (-0400) Subject: mkgitrel.rel: remove failed logs and sources before testing incr/v$rel X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e5f01faa09f16463fcaaba3d9d01c654596a5464;p=releases.git mkgitrel.rel: remove failed logs and sources before testing incr/v$rel --- diff --git a/mkgitrel.rel b/mkgitrel.rel index 43f51391dc1..5a7e6d5d2f0 100755 --- a/mkgitrel.rel +++ b/mkgitrel.rel @@ -28,18 +28,19 @@ else exit 1 fi -DATE=$(git cat-file -p incr/v$rel | - gawk '/^(author|tagger)/ { - print strftime(PROCINFO["strftime"], $(NF-1)) - }') && -export GIT_COMMITTER_DATE=$DATE GIT_AUTHOR_DATE=$DATE && - if test -f linux-libre-$rel.check; then success=false git worktree remove logs/v$rel + git worktree remove --force sources/v$rel continue fi && +DATE=$(git cat-file -p incr/v$rel | + gawk '/^(author|tagger)/ { + print strftime(PROCINFO["strftime"], $(NF-1)) + }') && +export GIT_COMMITTER_DATE=$DATE GIT_AUTHOR_DATE=$DATE && + plist="patch-$prev0-$rel" && if test "$prev0" != "$prevn"; then plist="$plist patch-$prevn-$rel"