Permalink
Browse files

Add a way to generate a single zip file of a release.

  • Loading branch information...
1 parent 497ea18 commit 0e76a6c28520264704554e1d35388230cc633ea8 @jeresig jeresig committed Oct 15, 2010
Showing with 16 additions and 5 deletions.
  1. +16 −5 Makefile
View
@@ -1,10 +1,11 @@
VER = $(shell cat version.txt)
-MAX = jquery.mobile-${VER}.js
-MIN = jquery.mobile-${VER}.min.js
-CSS = jquery.mobile-${VER}.css
-CSSMIN = jquery.mobile-${VER}.min.css
+DIR = jquery.mobile-${VER}
+MAX = ${DIR}.js
+MIN = ${DIR}.min.js
+CSS = ${DIR}.css
+CSSMIN = ${DIR}.min.css
FILES = js/jquery.ui.widget.js \
js/jquery.mobile.widget.js \
@@ -49,11 +50,14 @@ CSSFILES = themes/default/jquery.mobile.theme.css \
all: mobile min css cssmin
+clean:
+ @@rm -rf ${DIR}*
+
css:
@@head -8 js/jquery.mobile.js > ${CSS}
@@cat ${CSSFILES} >> ${CSS}
-cssmin:
+cssmin: css
@@head -8 js/jquery.mobile.js > ${CSSMIN}
@@java -jar build/yuicompressor-2.4.2.jar --type css ${CSS} >> ${CSSMIN}
@@ -66,3 +70,10 @@ min: mobile
@@java -jar ../jquery/build/google-compiler-20100917.jar --js ${MAX} --warning_level QUIET --js_output_file ${MIN}.tmp
@@cat ${MIN}.tmp >> ${MIN}
@@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}
+ @@zip -r ${DIR}.zip ${DIR}

0 comments on commit 0e76a6c

Please sign in to comment.