Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
correct docs css/js refs for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed May 1, 2012
1 parent 8e635ff commit 27e6790
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 27e6790

Please sign in to comment.