1
1
mirror of https://github.com/varkor/quiver.git synced 2024-09-11 05:46:13 +03:00

Add a cleanup command to the Makefile

This commit is contained in:
varkor 2023-08-17 12:55:59 +02:00
parent f0e3746f4b
commit d63b5bad03

View File

@ -1,4 +1,4 @@
.PHONY: all gh-pages
.PHONY: all gh-pages cleanup
# Ensure `cd` works properly by forcing everything to be executed in a single shell.
.ONESHELL:
@ -102,3 +102,9 @@ gh-pages:
git checkout $$CURRENT
# Delete the temporary `squashed` branch.
git branch -D squashed
# Clean up the effects of the gh-pages upload, if it did not successfully terminate.
cleanup:
git checkout master
git worktree remove ../quiver-worktree -f
git branch -D squashed