Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 109 lines (91 sloc) 4.227 kb
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
1
2 VER = $(shell cat version.txt)
c9a34f1 @jeresig Add versioning information to the headers of the CSS and JS files.
jeresig authored
3 SED_VER = sed "s/@VERSION/${VER}/"
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
4
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
5 DIR = jquery.mobile-${VER}
6 MAX = ${DIR}.js
7 MIN = ${DIR}.min.js
8 CSS = ${DIR}.css
9 CSSMIN = ${DIR}.min.css
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
10
11 FILES = js/jquery.ui.widget.js \
12 js/jquery.mobile.widget.js \
28a10ec Moved all of the media query and responsive design related scripting …
scottjehl authored
13 js/jquery.mobile.media.js \
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
14 js/jquery.mobile.support.js \
15 js/jquery.mobile.event.js \
16 js/jquery.mobile.hashchange.js \
b671753 @johnbender moved page above core in the makefile, build xml, and manifest under …
johnbender authored
17 js/jquery.mobile.page.js \
d56380f refactor of jquery.mobile.core.js. Moved all of the page navigation m…
scottjehl authored
18 js/jquery.mobile.core.js \
19 js/jquery.mobile.navigation.js \
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
20 js/jquery.mobile.fixHeaderFooter.js \
21 js/jquery.mobile.forms.checkboxradio.js \
22 js/jquery.mobile.forms.textinput.js \
23 js/jquery.mobile.forms.select.js \
24 js/jquery.mobile.buttonMarkup.js \
25 js/jquery.mobile.forms.button.js \
26 js/jquery.mobile.forms.slider.js \
27 js/jquery.mobile.collapsible.js \
28 js/jquery.mobile.controlGroup.js \
29 js/jquery.mobile.fieldContain.js \
30 js/jquery.mobile.listview.js \
31 js/jquery.mobile.listview.filter.js \
32 js/jquery.mobile.dialog.js \
33 js/jquery.mobile.navbar.js \
d56380f refactor of jquery.mobile.core.js. Moved all of the page navigation m…
scottjehl authored
34 js/jquery.mobile.grid.js
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
35
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Googl…
jeresig authored
36 CSSFILES = themes/default/jquery.mobile.theme.css \
37 themes/default/jquery.mobile.core.css \
38 themes/default/jquery.mobile.transitions.css \
39 themes/default/jquery.mobile.grids.css \
40 themes/default/jquery.mobile.headerfooter.css \
41 themes/default/jquery.mobile.navbar.css \
42 themes/default/jquery.mobile.button.css \
43 themes/default/jquery.mobile.collapsible.css \
44 themes/default/jquery.mobile.controlgroup.css \
45 themes/default/jquery.mobile.dialog.css \
46 themes/default/jquery.mobile.forms.checkboxradio.css \
47 themes/default/jquery.mobile.forms.fieldcontain.css \
48 themes/default/jquery.mobile.forms.select.css \
49 themes/default/jquery.mobile.forms.textinput.css \
50 themes/default/jquery.mobile.listview.css \
51 themes/default/jquery.mobile.forms.slider.css
52
53 all: mobile min css cssmin
54
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
55 clean:
56 @@rm -rf ${DIR}*
57
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Googl…
jeresig authored
58 css:
364405e updated refs to core file
scottjehl authored
59 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${CSS}
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Googl…
jeresig authored
60 @@cat ${CSSFILES} >> ${CSS}
61
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
62 cssmin: css
364405e updated refs to core file
scottjehl authored
63 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${CSSMIN}
ba159af @jeresig Upgraded YUI Compressor to 2.4.4.
jeresig authored
64 @@java -jar build/yuicompressor-2.4.4.jar --type css ${CSS} >> ${CSSMIN}
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
65
66 mobile:
364405e updated refs to core file
scottjehl authored
67 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${MAX}
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
68 @@cat ${FILES} >> ${MAX}
69
70 min: mobile
364405e updated refs to core file
scottjehl authored
71 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${MIN}
a71c7a9 fixed path to google compiler in Makefile
scottjehl authored
72 @@java -jar build/google-compiler-20100917.jar --js ${MAX} --warning_level QUIET --js_output_file ${MIN}.tmp
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
73 @@cat ${MIN}.tmp >> ${MIN}
74 @@rm -f ${MIN}.tmp
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
75
76 zip: clean min cssmin
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
77 @@mkdir -p ${DIR}
78 @@cp ${DIR}*.js ${DIR}/
79 @@cp ${DIR}*.css ${DIR}/
80 @@cp -R themes/default/images ${DIR}/
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
81 @@zip -r ${DIR}.zip ${DIR}
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
82
83 # Used by the jQuery team to deploy a build to the CDN
84 deploy: zip
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
85 # Deploy to CDN
f9ec1e4 @jeresig Fix mistake in Makefile deploy script.
jeresig authored
86 @@mv ${DIR} ${VER}
87 @@cp ${DIR}.zip ${VER}/
88 @@scp -r ${VER} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
89 @@mv ${VER} ${DIR}
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
90
91 # Deploy Demos
92 @@mkdir -p ${VER}
93 @@cp -r index.html themes experiments docs ${VER}/
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
94
95 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|"text/javascript" src="../../../js|"text/javascript" src="js|g' {} \;
96 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|"text/javascript" src="../../js|"text/javascript" src="js|g' {} \;
97 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|"text/javascript" src="../js|"text/javascript" src="js|g' {} \;
98
950784e @jeresig Make some tweaks to the deploy script.
jeresig authored
99 @@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
100 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../../../|rel="stylesheet" href="|g' {} \;
101 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../../|rel="stylesheet" href="|g' {} \;
102 @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|rel="stylesheet" href="../|rel="stylesheet" href="|g' {} \;
103
38f09ee @jblas Sweep through all files to add a trailing slash to <link> tags that i…
jblas authored
104 @@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
105 @@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"|' {} \;
106 @@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
107
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
108 @@scp -r ${VER} jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
Something went wrong with that request. Please try again.