Skip to content
This repository
Browse code

Update the deployed files to use the CDN for the resources

  • Loading branch information...
commit ecf0b9753693b06ab198030eda305a992bc9f1b9 1 parent cb89ace
Eddie Monge eddiemonge authored

Showing 2 changed files with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +1 0  .gitignore
  2. +6 1 Makefile
1  .gitignore
@@ -7,6 +7,7 @@ cache/
7 7 combined/
8 8 combine/
9 9 compiled/
  10 +tmp/
10 11 *.swp
11 12 .gitignore
12 13 tests/speed/stats/stats.db
7 Makefile
@@ -194,7 +194,12 @@ deploy: init js css docs zip
194 194 @@rm -rf tmp/${VER_OFFICIAL}
195 195 # Create the Demos/Docs/Tests/Tools for jQueryMobile.com
196 196 @@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
197   - # ... And copied to the CDN and the jquerymobile.com server
  197 + # ... By first replacing the paths
  198 + @@find tmp/${VER_OFFICIAL} -type f \
  199 + \( -name '*.html' -o -name '*.php' \) \
  200 + -exec perl -pi -e \
  201 + 's|src="(.*)/${NAME}.min.js"|src="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.js"|g;s|href="(.*)/${NAME}.min.css"|href="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.css"|g;s|src="(.*)/jquery.js"|src="//code.jquery.com/jquery-1.6.4.js"|g' {} \;
  202 + # ... So they can be copied to jquerymobile.com
198 203 @@scp -r tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
199 204 # Do some cleanup to wrap it up
200 205 @@rm -rf tmp

0 comments on commit ecf0b97

Please sign in to comment.
Something went wrong with that request. Please try again.