Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correct docs css/js refs for deploy

  • Loading branch information...
commit 8929edad473ec31e721e7c1fcd72ce92f3c11be4 1 parent 4d7f354
@johnbender johnbender authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 Makefile
View
5 Makefile
@@ -109,7 +109,10 @@ docs: init js css
@@cp -r compiled/images tmp/demos/css/themes/${THEME}
# ... replace "js/" with "js/jquery.mobile.js"
@@ # NOTE the deletion here is required by gnu/bsd sed differences
- @@find tmp/demos \( -name '*.html' -o -name '*.php' \) -exec sed -i${SED_INPLACE_EXT} -e 's@js/"@js/jquery.mobile.js"@' {} \;
+ @@find tmp/demos \( -name '*.html' -o -name '*.php' \) -exec sed -i${SED_INPLACE_EXT} -e 's@js/"@js/${NAME}.js"@' {} \;
+ @@find tmp/demos -name "*${SED_INPLACE_EXT}" -exec rm {} \;
+ @@ # make sure the docs reference the right css file names (for deploy)
+ @@find tmp/demos \( -name '*.html' -o -name '*.php' \) -exec sed -i${SED_INPLACE_EXT} -e 's@${BASE_NAME}.css"@${NAME}.css"@' {} \;
@@find tmp/demos -name "*${SED_INPLACE_EXT}" -exec rm {} \;
# ... Move and zip up the the whole folder
@@rm -f ${OUTPUT}/${BASE_NAME}.docs.zip
Please sign in to comment.
Something went wrong with that request. Please try again.