forked from jquery-archive/jquery-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For all versions of make except for deploy, the outputted scripts wil…
…l have the git info used for that build. Deploy will still use the version in the version.txt file
- Loading branch information
1 parent
f176f4a
commit 19c952a
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,10 @@ DATE = $(shell date "+%Y%m%d") | |
|
||
# The version according to the source file. If this is the nightly build, use a different version | ||
VER = $(shell cat version.txt) | ||
nightly: VER = nightly | ||
|
||
# The command to replace the @VERSION in the files with the actual version | ||
SED_VER = sed "s/@VERSION/${VER}/" | ||
nightly: SED_VER = sed "s/@VERSION/Nightly-${DATE}/" | ||
SED_VER = sed "s/@VERSION/$(shell git log -1 --format=format:" Git Build\n * Git Info SHA1: %H Date: %cd")/" | ||
deploy: SED_VER = sed "s/@VERSION/${VER}/" | ||
|
||
# The version of jQuery core used | ||
JQUERY = $(shell grep Library js/jquery.js | sed s'/ \* jQuery JavaScript Library v//') | ||
|
@@ -26,7 +25,6 @@ NIGHTLY_OUTPUT = nightlies/${DATE} | |
ifeq (${NIGHTLY_OUTPUT}, latest) | ||
RMLATEST = ssh [email protected] 'rm -rf /var/www/html/code.jquery.com/mobile/latest' | ||
DIR = jquery.mobile | ||
SED_VER = sed "s/@VERSION/ LatestBuild/" | ||
endif | ||
NIGHTLY_WEBPATH = http://code.jquery.com/mobile/${NIGHTLY_OUTPUT} | ||
|
||
|
@@ -139,7 +137,7 @@ nightly: pull zip | |
@@echo $$"\nGit Release Version: " >> ${OUTPUT}/log.txt | ||
@@cat version.txt >> ${OUTPUT}/log.txt | ||
@@echo $$"\nGit Information for this build:" >> ${OUTPUT}/log.txt | ||
@@git log -1 --format=format:"SHA1: %H %nDate: %cd %nTitle: %s" >> ${OUTPUT}/log.txt | ||
@@git log -1 --format=format:"SHA1: %H \nDate: %cd \nTitle: %s" >> ${OUTPUT}/log.txt | ||
|
||
# Create the folder to hold the files for the demos | ||
@@mkdir -p ${VER} | ||
|
@@ -199,3 +197,4 @@ deploy: zip | |
@@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/"|src="http://code.jquery.com/mobile/${VER}/${DIR}.min.js"|g' {} \; | ||
|
||
@@scp -r ${VER} [email protected]:/srv/jquerymobile.com/htdocs/demos/ | ||
|