diff --git a/Makefile.rkt b/Makefile.rkt index 39d7e36..b23fd33 100644 --- a/Makefile.rkt +++ b/Makefile.rkt @@ -20,5 +20,19 @@ (deps clean) (zip-package)) +(target housekeeping + (displayln "Committing changes for:") + (let ((changes (git 'status))) + (when (> (length changes) 0) + (dgit 'status) + (displayln "Adding...") + (dgit 'add '-A) + (displayln "Committing...") + (dgit 'commit (git-prompt)) + (displayln "Pushing...") + (dgit 'push))) + ) + (target main + (deps housekeeping) (git 'switch "main")) \ No newline at end of file