# HG changeset patch # User Oleksandr Gavenko # Date 1326631726 -7200 # Node ID 7d9f38580ed970b2dc8cbbd70e91f0384b7b46eb # Parent 49f373dba523bb9321c344da1551caf0936a1ae1 Add 'deploy-check' target to check source sanity before release. diff -r 49f373dba523 -r 7d9f38580ed9 Makefile --- a/Makefile Sun Jan 15 14:40:48 2012 +0200 +++ b/Makefile Sun Jan 15 14:48:46 2012 +0200 @@ -193,6 +193,17 @@ deploy2sf-src: hg push ssh://gavenkoa@hg.code.sf.net/p/$(pkgname)/code +.PHONY: deploy-check +deploy-check: + case ${visclean} in \ + no) echo "Local changes found. Build stop."; \ + exit 1;; \ + esac + case $(vatrelease) in \ + no) echo "We are not at release. Build stop."; \ + exit 1;; \ + esac + ################################################################ # Dist targets.