Add deploy functionality to the build script.

This commit is contained in:
John Resig 2010-10-15 15:33:57 -04:00
parent 908c86a117
commit 47a45f5cbb

View file

@ -72,8 +72,14 @@ min: mobile
@@rm -f ${MIN}.tmp
zip: clean min cssmin
@@mkdir -p ${DIR}/theme
@@cp ${DIR}*.js ${DIR}
@@cp ${DIR}*.css ${DIR}
@@cp -R themes/default/images ${DIR}
@@mkdir -p ${DIR}
@@cp ${DIR}*.js ${DIR}/
@@cp ${DIR}*.css ${DIR}/
@@cp -R themes/default/images ${DIR}/
@@zip -r ${DIR}.zip ${DIR}
# Used by the jQuery team to deploy a build to the CDN
deploy: zip
@@mv ${DIR} $1
@@cp ${DIR}.zip $1/
@@scp -r $1 jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/