Permalink
Browse files

Add in ability to push demos to the jQueryMobile.com server.

  • Loading branch information...
1 parent 053808f commit 7e115d6036756bb09bfaf9f8978c8d811903800b @jeresig jeresig committed Oct 15, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 Makefile
View
@@ -80,6 +80,15 @@ zip: clean min cssmin
# Used by the jQuery team to deploy a build to the CDN
deploy: zip
+ # Deploy to CDN
@@mv ${DIR} $1
@@cp ${DIR}.zip $1/
@@scp -r $1 jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
+ @@mv $1 ${DIR}
+
+ # Deploy Demos
+ @@mkdir -p ${VER}
+ @@cp -r index.html themes experiments docs ${VER}/
+ @@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' {} \;
+ @@find ${VER} -type f -name '*.html' -exec sed -i "" -e 's|src="js/all"|src="http://code.jquery.com/mobile/${VER}/${DIR}.min.js"|g' {} \;
+ @@scp -r ${VER} jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/

0 comments on commit 7e115d6

Please sign in to comment.