Browse files

Added warning for missing git tag on deploy

Added a warning to the deploy target of the makefile if the current
version in version.txt is not a git tag.
  • Loading branch information...
1 parent ff07444 commit d2d9d6ce3f2579804eba8c1b972162e8975189da Jason Scott committed May 10, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 Makefile
10 Makefile
@@ -36,6 +36,15 @@ else
RUN_JS = @@java -XX:ReservedCodeCacheSize=64m -classpath build/js.jar:build/google-compiler-20111003.jar
+# Check if the current version has been tagged
+# If not show a warning when we invoke the deploy build target
+GIT_TAG = $(shell git tag -l ${VER_OFFICIAL})
+HAS_GIT_TAG = $(shell if [ -n "${GIT_TAG}" ];then echo true; fi)
+ifneq (${HAS_GIT_TAG}, true)
+ MISSING_GIT_TAG_WARNING = Warning: This version has not been tagged in git.
# Build Targets
# When no build target is specified, all gets ran
@@ -216,6 +225,7 @@ deploy: clean init css js docs zip
# Do some cleanup to wrap it up
@@rm -rf tmp
@@rm -rf ${OUTPUT}
# -------------------------------------------------

0 comments on commit d2d9d6c

Please sign in to comment.