This repository was archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix license version and zip folder #3094
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,8 +58,10 @@ CSSTHEMEFILES = css/themes/${THEME}/jquery.mobile.theme.css | |
| # Helper Variables | ||
| # The command to replace the @VERSION in the files with the actual version | ||
| VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/" | ||
| VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */" | ||
| VER_MIN = "/*! jQuery Mobile v$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd") jquerymobile.com | jquery.org/license */" | ||
| VER_OFFICIAL = $(shell cat version.txt) | ||
| deploy: VER = sed "s/v@VERSION/${VER_OFFICIAL}/" | ||
| deploy: VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */" | ||
|
|
||
| # The output folder for the finished files | ||
| OUTPUT = compiled | ||
|
|
@@ -86,13 +88,13 @@ all: init css js zip notify | |
| # Build and minify the CSS files | ||
| css: init | ||
| # Build the CSS file with the theme included | ||
| @@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${NAME}.css | ||
| @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.css | ||
| @@cat ${CSSTHEMEFILES} ${CSSFILES} >> ${OUTPUT}/${NAME}.css | ||
| # ..... and then minify it | ||
| @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css | ||
| @@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${NAME}.css >> ${OUTPUT}/${NAME}.min.css | ||
| # Build the CSS Structure-only file | ||
| @@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${STRUCTURE}.css | ||
| @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${STRUCTURE}.css | ||
| @@cat ${CSSFILES} >> ${OUTPUT}/${STRUCTURE}.css | ||
| # ..... and then minify it | ||
| @@echo ${VER_MIN} > ${OUTPUT}/${STRUCTURE}.min.css | ||
|
|
@@ -114,7 +116,7 @@ docs: init css js | |
| -exec perl -pi -e \ | ||
| 's|js/"|${NAME}.min.js"|g;s|css/themes/default/|${NAME}.min.css|g;s|js/jquery.js"|jquery.js"|g' {} \; | ||
| # ... Move and zip up the the whole folder | ||
| @@zip -rq ${OUTPUT}/${NAME}.docs.zip tmp/${NAME} | ||
| @@cd tmp; zip -rq ../${OUTPUT}/${NAME}.docs.zip ${NAME} | ||
| @@mv tmp/${NAME} ${OUTPUT}/demos | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you're not out of tmp yet |
||
| # Finish by removing the temporary files | ||
| @@rm -rf tmp | ||
|
|
@@ -134,7 +136,7 @@ init: | |
| # Build and minify the JS files | ||
| js: init | ||
| # Build the JavaScript file | ||
| @@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${NAME}.js | ||
| @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.js | ||
| @@cat ${JSFILES} >> ${OUTPUT}/${NAME}.js | ||
| # ..... and then minify it | ||
| @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js | ||
|
|
@@ -153,7 +155,7 @@ zip: init css js | |
| # Packaging up the files into a zip archive | ||
| @@mkdir tmp | ||
| @@cp -r ${OUTPUT} tmp/${NAME} | ||
| @@zip -rq ${OUTPUT}/${NAME}.zip tmp/${NAME}/ | ||
| @@cd tmp; zip -rq ../${OUTPUT}/${NAME}.zip ${NAME} | ||
| @@rm -rf tmp | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, still in tmp. I think using |
||
| # ------------------------------------------------- | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that double
$intentional?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, its needed to do inline shell commands