From 47a45f5cbb9ff2cb6d6701e852129e56fc71c535 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 15 Oct 2010 15:33:57 -0400 Subject: [PATCH] Add deploy functionality to the build script. --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ee60288a..fea039ba 100755 --- a/Makefile +++ b/Makefile @@ -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/