Skip to content

Commit 8c6498f

Browse files
committed
Fix license version and zip folder
1 parent 3d17a69 commit 8c6498f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ CSSTHEMEFILES = css/themes/${THEME}/jquery.mobile.theme.css
6060
VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
6161
VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */"
6262
VER_OFFICIAL = $(shell cat version.txt)
63+
deploy: VER = sed "s/v@VERSION/${VER_OFFICIAL}/"
6364

6465
# The output folder for the finished files
6566
OUTPUT = compiled
@@ -86,13 +87,13 @@ all: init css js zip notify
8687
# Build and minify the CSS files
8788
css: init
8889
# Build the CSS file with the theme included
89-
@@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${NAME}.css
90+
@@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.css
9091
@@cat ${CSSTHEMEFILES} ${CSSFILES} >> ${OUTPUT}/${NAME}.css
9192
# ..... and then minify it
9293
@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css
9394
@@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${NAME}.css >> ${OUTPUT}/${NAME}.min.css
9495
# Build the CSS Structure-only file
95-
@@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${STRUCTURE}.css
96+
@@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${STRUCTURE}.css
9697
@@cat ${CSSFILES} >> ${OUTPUT}/${STRUCTURE}.css
9798
# ..... and then minify it
9899
@@echo ${VER_MIN} > ${OUTPUT}/${STRUCTURE}.min.css
@@ -114,7 +115,7 @@ docs: init css js
114115
-exec perl -pi -e \
115116
's|js/"|${NAME}.min.js"|g;s|css/themes/default/|${NAME}.min.css|g;s|js/jquery.js"|jquery.js"|g' {} \;
116117
# ... Move and zip up the the whole folder
117-
@@zip -rq ${OUTPUT}/${NAME}.docs.zip tmp/${NAME}
118+
@@cd tmp; zip -rq ../${OUTPUT}/${NAME}.docs.zip ${NAME}
118119
@@mv tmp/${NAME} ${OUTPUT}/demos
119120
# Finish by removing the temporary files
120121
@@rm -rf tmp
@@ -134,7 +135,7 @@ init:
134135
# Build and minify the JS files
135136
js: init
136137
# Build the JavaScript file
137-
@@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${NAME}.js
138+
@@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.js
138139
@@cat ${JSFILES} >> ${OUTPUT}/${NAME}.js
139140
# ..... and then minify it
140141
@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
@@ -153,7 +154,7 @@ zip: init css js
153154
# Packaging up the files into a zip archive
154155
@@mkdir tmp
155156
@@cp -r ${OUTPUT} tmp/${NAME}
156-
@@zip -rq ${OUTPUT}/${NAME}.zip tmp/${NAME}/
157+
@@cd tmp; zip -rq ../${OUTPUT}/${NAME}.zip ${NAME}
157158
@@rm -rf tmp
158159
# -------------------------------------------------
159160

0 commit comments

Comments
 (0)