Add 'deploy-check' target to check source sanity before release.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 15 Jan 2012 14:48:46 +0200
changeset 124 7d9f38580ed9
parent 123 49f373dba523
child 125 63b391bee058
Add 'deploy-check' target to check source sanity before release.
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.