mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Update the deployed files to use the CDN for the resources
This commit is contained in:
parent
cb89aceb77
commit
ecf0b97536
2 changed files with 7 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -7,6 +7,7 @@ cache/
|
|||
combined/
|
||||
combine/
|
||||
compiled/
|
||||
tmp/
|
||||
*.swp
|
||||
.gitignore
|
||||
tests/speed/stats/stats.db
|
||||
|
|
|
|||
7
Makefile
7
Makefile
|
|
@ -194,7 +194,12 @@ deploy: init js css docs zip
|
|||
@@rm -rf tmp/${VER_OFFICIAL}
|
||||
# Create the Demos/Docs/Tests/Tools for jQueryMobile.com
|
||||
@@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
|
||||
# ... And copied to the CDN and the jquerymobile.com server
|
||||
# ... By first replacing the paths
|
||||
@@find tmp/${VER_OFFICIAL} -type f \
|
||||
\( -name '*.html' -o -name '*.php' \) \
|
||||
-exec perl -pi -e \
|
||||
's|src="(.*)/${NAME}.min.js"|src="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.js"|g;s|href="(.*)/${NAME}.min.css"|href="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.css"|g;s|src="(.*)/jquery.js"|src="//code.jquery.com/jquery-1.6.4.js"|g' {} \;
|
||||
# ... So they can be copied to jquerymobile.com
|
||||
@@scp -r tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
|
||||
# Do some cleanup to wrap it up
|
||||
@@rm -rf tmp
|
||||
|
|
|
|||
Loading…
Reference in a new issue