From ca55d18e1b6d3e5f1fa56134c9e2e67f30901d90 Mon Sep 17 00:00:00 2001 From: eddiemonge Date: Wed, 13 Apr 2011 12:54:54 -0700 Subject: [PATCH] makefile for lateset --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 31caf008..0ec14194 100755 --- a/Makefile +++ b/Makefile @@ -20,6 +20,11 @@ OUTPUT = compiled # The output folder for the nightly files. NIGHTLY_OUTPUT = nightlies/${DATE} +ifeq (${NIGHTLY_OUTPUT}, latest) + RMLATEST = ssh jqadmin@code.origin.jquery.com 'rm -rf /var/www/html/code.jquery.com/mobile/latest' +else + RMLATEST = '' +endif NIGHTLY_WEBPATH = http://code.jquery.com/mobile/${NIGHTLY_OUTPUT} # The filenames @@ -160,7 +165,7 @@ nightly: pull zip # Copy the images as well @@cp -R themes/default/images ${OUTPUT} - # Move the output folder to the nightlies folder + @@${RMLATEST} @@scp -r ${OUTPUT} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/${NIGHTLY_OUTPUT} @@rm -rf ${OUTPUT}