Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 121 lines (102 sloc) 4.581 kb
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
1
2 VER = $(shell cat version.txt)
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
3 COMMITVER = $(shell git log -1 --format=format:"SHA1: %H %nDate: %cd %nTitle: %s")
c9a34f1 @jeresig Add versioning information to the headers of the CSS and JS files.
jeresig authored
4 SED_VER = sed "s/@VERSION/${VER}/"
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
5
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
6 DIR = jquery.mobile-${VER}
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
7 DONE = done
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
8 MAX = ${DIR}.js
9 MIN = ${DIR}.min.js
10 CSS = ${DIR}.css
11 CSSMIN = ${DIR}.min.css
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
12
13 FILES = js/jquery.ui.widget.js \
14 js/jquery.mobile.widget.js \
28a10ec Moved all of the media query and responsive design related scripting to ...
scottjehl authored
15 js/jquery.mobile.media.js \
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
16 js/jquery.mobile.support.js \
6fa5002 @jblas Added jquery.mobile.vmouse.js to the build Makefile.
jblas authored
17 js/jquery.mobile.vmouse.js \
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
18 js/jquery.mobile.event.js \
19 js/jquery.mobile.hashchange.js \
b671753 @johnbender moved page above core in the makefile, build xml, and manifest under js....
johnbender authored
20 js/jquery.mobile.page.js \
d56380f refactor of jquery.mobile.core.js. Moved all of the page navigation mode...
scottjehl authored
21 js/jquery.mobile.core.js \
22 js/jquery.mobile.navigation.js \
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
23 js/jquery.mobile.fixHeaderFooter.js \
24 js/jquery.mobile.forms.checkboxradio.js \
25 js/jquery.mobile.forms.textinput.js \
26 js/jquery.mobile.forms.select.js \
27 js/jquery.mobile.buttonMarkup.js \
28 js/jquery.mobile.forms.button.js \
29 js/jquery.mobile.forms.slider.js \
30 js/jquery.mobile.collapsible.js \
31 js/jquery.mobile.controlGroup.js \
32 js/jquery.mobile.fieldContain.js \
33 js/jquery.mobile.listview.js \
34 js/jquery.mobile.listview.filter.js \
35 js/jquery.mobile.dialog.js \
36 js/jquery.mobile.navbar.js \
891f9b1 @johnbender moved initialization down in the build order, still requires some small ...
johnbender authored
37 js/jquery.mobile.grid.js \
38 js/jquery.mobile.init.js
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
39
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Google C...
jeresig authored
40 CSSFILES = themes/default/jquery.mobile.theme.css \
41 themes/default/jquery.mobile.core.css \
42 themes/default/jquery.mobile.transitions.css \
43 themes/default/jquery.mobile.grids.css \
44 themes/default/jquery.mobile.headerfooter.css \
45 themes/default/jquery.mobile.navbar.css \
46 themes/default/jquery.mobile.button.css \
47 themes/default/jquery.mobile.collapsible.css \
48 themes/default/jquery.mobile.controlgroup.css \
49 themes/default/jquery.mobile.dialog.css \
50 themes/default/jquery.mobile.forms.checkboxradio.css \
51 themes/default/jquery.mobile.forms.fieldcontain.css \
52 themes/default/jquery.mobile.forms.select.css \
53 themes/default/jquery.mobile.forms.textinput.css \
54 themes/default/jquery.mobile.listview.css \
55 themes/default/jquery.mobile.forms.slider.css
56
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
57 all: log mobile min css cssmin zip
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Google C...
jeresig authored
58
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
59 clean:
60 @@rm -rf ${DIR}*
61
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Google C...
jeresig authored
62 css:
364405e updated refs to core file
scottjehl authored
63 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${CSS}
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
64 @@cat ${CSSFILES} >> ${DONE}/${CSS}
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Google C...
jeresig authored
65
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
66 cssmin: css
364405e updated refs to core file
scottjehl authored
67 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${CSSMIN}
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
68 @@java -jar build/yuicompressor-2.4.4.jar --type css ${DONE}/${CSS} >> ${DONE}/${CSSMIN}
69
70 log:
71 @@mkdir ${DONE}
72 @@echo "Git Release Version: " >> ${DONE}/README.txt
73 @@echo ${VER} >> ${DONE}/README.txt
74 @@echo "\nGit Information for this build:\n" >> ${DONE}/README.txt
75 @@echo ${COMMITVER} >> ${DONE}/README.txt
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
76
77 mobile:
364405e updated refs to core file
scottjehl authored
78 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${MAX}
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
79 @@cat ${FILES} >> ${DONE}/${MAX}
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
80
81 min: mobile
364405e updated refs to core file
scottjehl authored
82 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${MIN}
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
83 @@java -jar build/google-compiler-20100917.jar --js ${DONE}/${MAX} --warning_level QUIET --js_output_file ${MIN}.tmp
84 @@cat ${MIN}.tmp >> ${DONE}/${MIN}
85 @@rm -f tmp
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
86
87 zip: clean min cssmin
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
88 @@mkdir -p ${DIR}
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
89 @@cp ${DONE}/${DIR}*.js ${DIR}/
90 @@cp ${DONE}/${DIR}*.css ${DIR}/
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
91 @@cp -R themes/default/images ${DIR}/
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
92 @@zip -r ${DIR}.zip ${DIR}
8822132 @eddiemonge Feature Request for issue 1177: Make Makefile output cleaner stuff
eddiemonge authored
93 @@rm -fr ${DIR}
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
94
95 # Used by the jQuery team to deploy a build to the CDN
96 deploy: zip
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
97 # Deploy to CDN
f9ec1e4 @jeresig Fix mistake in Makefile deploy script.
jeresig authored
98 @@mv ${DIR} ${VER}
99 @@cp ${DIR}.zip ${VER}/
100 @@scp -r ${VER} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
101 @@mv ${VER} ${DIR}
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
102
103 # Deploy Demos
104 @@mkdir -p ${VER}
105 @@cp -r index.html themes experiments docs ${VER}/
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
106
ac519ba @jeresig Simplifying the build script some more.
jeresig authored
107 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../../../js|src="js|g' {} \;
108 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../../js|src="js|g' {} \;
109 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="../js|src="js|g' {} \;
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
110
950784e @jeresig Make some tweaks to the deploy script.
jeresig authored
111 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|media="only all"||g' {} \;
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
112 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../../../|rel="stylesheet" href="|g' {} \;
113 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../../|rel="stylesheet" href="|g' {} \;
114 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../|rel="stylesheet" href="|g' {} \;
115
38f09ee @jblas Sweep through all files to add a trailing slash to <link> tags that incl...
jblas authored
116 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|href="themes/default/"|href="http://code.jquery.com/mobile/${VER}/${DIR}.min.css"|g' {} \;
950784e @jeresig Make some tweaks to the deploy script.
jeresig authored
117 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/jquery.js"|src="http://code.jquery.com/jquery-1.5.min.js"|' {} \;
118 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/"|src="http://code.jquery.com/mobile/${VER}/${DIR}.min.js"|g' {} \;
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
119
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
120 @@scp -r ${VER} jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
Something went wrong with that request. Please try again.