diff --git a/Makefile b/Makefile index 1924bccf570..16087f9b08f 100644 --- a/Makefile +++ b/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