paranoid push
[m6w6/ext-psi] / Makefile.frag
index 589785dc23ec0b1bdf8260b23dc34ddefba18046..a9f6035bfa37e4da4bfa20988d9ea83481981ac0 100644 (file)
@@ -86,3 +86,13 @@ clean: psi-clean-headers
 ifneq ($(PSI_DEPS),)
 clean: psi-clean-depend
 endif
+
+.PHONY: psi-paranoid-backups
+psi-paranoid-backups:
+       -if test -z "$((DEST))"; then \
+               echo "Usage: make psi-paranoid-backups DEST=<repo to push to>"; \
+       else \
+               git ci -am flush; \
+               git push $DEST; \
+       fi
+