mkgitrel.rel: remove failed logs and sources before testing incr/v$rel
authorAlexandre Oliva <lxoliva@fsfla.org>
Thu, 29 Oct 2020 21:46:29 +0000 (17:46 -0400)
committerAlexandre Oliva <lxoliva@fsfla.org>
Thu, 29 Oct 2020 21:46:29 +0000 (17:46 -0400)
mkgitrel.rel

index 43f51391dc1a65388b60a9df83a58cdc6fdb7cd2..5a7e6d5d2f0f2b1d74d676fb1843ed0e1e51c01b 100755 (executable)
@@ -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"