File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ endif
3535# When no build target is specified, all gets ran
3636all : css js zip notify
3737
38- clean :
38+ clean :
3939 # -------------------------------------------------
4040 # Cleaning build output
4141 @@rm -rf ${OUTPUT}
4242 @@rm -rf tmp
4343
44- # Create the output directory.
44+ # Create the output directory.
4545init :
4646 @@mkdir -p ${OUTPUT}
4747
@@ -96,7 +96,11 @@ docs: init
9696 @@cat tmp/demos/LICENSE-INFO.txt | cat - tmp/demos/css/themes/default/${NAME} .css > tmp/demos/css/themes/default/${NAME} .css.tmp
9797 @@mv tmp/demos/css/themes/default/${NAME} .css.tmp tmp/demos/css/themes/default/${NAME} .css
9898 # ... replace "js/" with "js/jquery.mobile.docs.js"
99- @@find tmp/demos -name " *.html" -exec sed -i ' s@js/"@js/jquery.mobile.docs.js"@' {} \;
99+ # NOTE the deletion here is required by the outdated version of sed
100+ # on osx since it parses the inplace backup extension differently
101+ # than the linux version
102+ @@find tmp/demos -name " *.html" -exec sed -iwhyunowork -e ' s@js/"@js/jquery.mobile.docs.js"@' {} \;
103+ @@find tmp/demos -name " *whyunowork" -exec rm {} \;
100104 # ... Move and zip up the the whole folder
101105 @@rm -f ${OUTPUT} /${NAME} .docs.zip
102106 @@cd tmp/demos && rm -f * .php && rm -f Makefile
You can’t perform that action at this time.
0 commit comments