CI: allow cleaning up a string-freeze-check independently

This commit is contained in:
Adriaan de Groot 2019-11-28 15:58:02 +01:00
parent 3bf1fbba65
commit b70e5d7e0f

View File

@ -5,6 +5,23 @@
# a translations push, which works for the current development # a translations push, which works for the current development
# workflow .. but it could be improved by looking for one of # workflow .. but it could be improved by looking for one of
# the typical txpush log messages instead of the tag. # the typical txpush log messages instead of the tag.
#
# Use --cleanup as an argument to clean things up.
tx_cleanup()
{
# Cleanup artifacs of checking
git worktree remove --force build-txcheck-head
git worktree remove --force build-txcheck-prev
git branch -D build-txcheck-head > /dev/null 2>&1
}
if test "x$1" = "x--cleanup" ; then
tx_cleanup
exit 0
fi
test -z "$1" || { echo "! Usage: txcheck.sh [--cleanup]" ; exit 1 ; }
if git describe translation > /dev/null 2>&1 ; then if git describe translation > /dev/null 2>&1 ; then
: :
else else
@ -63,9 +80,6 @@ else
exit 1 exit 1
fi fi
# Cleanup artifacs of checking tx_cleanup
git worktree remove --force build-txcheck-head
git worktree remove --force build-txcheck-prev
git branch -D build-txcheck-head > /dev/null 2>&1
exit 0 exit 0