@@ -111,15 +111,13 @@ docs: init css js
111111 # ... Update the JavaScript and CSS paths
112112 @@find tmp/${NAME} -type f \
113113 \( -name ' *.html' -o -name ' *.php' \) \
114- -exec sed -i ' ' ' s|js/"|${NAME}.min.js"|g' {} \; \
115- -exec sed -i ' ' ' s|css/themes/default/|${NAME}.min.css|g' {} \; \
116- -exec sed -i ' ' ' s|js/jquery.js"|jquery.js"|g' {} \;
117- # ... And then move it the finished directory
118- @@mv tmp/${NAME} ${OUTPUT} /demos
119- # Last, zip up the the whole folder
120- @@zip -rq tmp/${NAME} .zip ${OUTPUT}
121- @@mv tmp/${NAME} .zip ${OUTPUT} /${NAME} .docs.zip
122- # Remove the temporary files
114+ -exec perl -pi -e \
115+ ' s|js/"|${NAME}.min.js"|g;s|css/themes/default/|${NAME}.min.css|g;s|js/jquery.js"|jquery.js"|g' {} \;
116+ # ... Move and zip up the the whole folder
117+ @@mv tmp/${NAME} ${OUTPUT} /${NAME}
118+ @@zip -rq ${OUTPUT} /${NAME} .docs.zip ${OUTPUT} /${NAME}
119+ @@mv ${OUTPUT} /${NAME} ${OUTPUT} /demos
120+ # Finish by removing the temporary files
123121 @@rm -rf tmp
124122 # -------------------------------------------------
125123
@@ -182,7 +180,7 @@ nightlies: init js css zip docs
182180 # Time to put these on the CDN
183181 @@mkdir -p tmp/nightlies
184182 @@mv ${OUTPUT} tmp/nightlies/$$(date "+%Y%m%d" )
185- @@scp -r nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
183+ @@scp -r tmp/ nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
186184 # Do some cleanup to wrap it up
187185 @@rm -rf tmp
188186 # -------------------------------------------------
0 commit comments