Permalink
Browse files

Add the current git version to the build process when its not a stabl…

…e build
  • Loading branch information...
1 parent 8c6498f commit 5f2c4025ad07cdd23377d1238c74010bd42feb6d @eddiemonge eddiemonge committed Nov 17, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile
View
@@ -58,9 +58,10 @@ CSSTHEMEFILES = css/themes/${THEME}/jquery.mobile.theme.css
# Helper Variables
# The command to replace the @VERSION in the files with the actual version
VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
-VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */"
+VER_MIN = "/*! jQuery Mobile v$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd") jquerymobile.com | jquery.org/license */"
VER_OFFICIAL = $(shell cat version.txt)
deploy: VER = sed "s/v@VERSION/${VER_OFFICIAL}/"
+deploy: VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */"
# The output folder for the finished files
OUTPUT = compiled

0 comments on commit 5f2c402

Please sign in to comment.