Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3009 from eddiemonge/server

Update Makefile to actually work on the server
  • Loading branch information...
commit d5ab078cddc2398b6e7ff6e74f2622dd93d5b920 2 parents 9a13fc0 + b7cd212
@johnbender johnbender authored
Showing with 6 additions and 9 deletions.
  1. +6 −9 Makefile
View
15 Makefile
@@ -111,15 +111,12 @@ docs: init css js
# ... Update the JavaScript and CSS paths
@@find tmp/${NAME} -type f \
\( -name '*.html' -o -name '*.php' \) \
- -exec sed -i '' 's|js/"|${NAME}.min.js"|g' {} \; \
- -exec sed -i '' 's|css/themes/default/|${NAME}.min.css|g' {} \; \
- -exec sed -i '' 's|js/jquery.js"|jquery.js"|g' {} \;
- # ... And then move it the finished directory
+ -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}
@@mv tmp/${NAME} ${OUTPUT}/demos
- # Last, zip up the the whole folder
- @@zip -rq tmp/${NAME}.zip ${OUTPUT}
- @@mv tmp/${NAME}.zip ${OUTPUT}/${NAME}.docs.zip
- # Remove the temporary files
+ # Finish by removing the temporary files
@@rm -rf tmp
# -------------------------------------------------
@@ -182,7 +179,7 @@ nightlies: init js css zip docs
# Time to put these on the CDN
@@mkdir -p tmp/nightlies
@@mv ${OUTPUT} tmp/nightlies/$$(date "+%Y%m%d")
- @@scp -r nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
+ @@scp -r tmp/nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
# Do some cleanup to wrap it up
@@rm -rf tmp
# -------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.