@@ -171,7 +171,7 @@ zip: init css js
171171# Push the latest git version to the CDN. This is done on a post commit hook
172172latest : init js css zip
173173 # Time to put these on the CDN
174- @@scp -r ${OUTPUT} /* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/latest/
174+ @@scp -qr ${OUTPUT} /* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/latest/
175175 # Do some cleanup to wrap it up
176176 @@rm -rf ${OUTPUT}
177177 # -------------------------------------------------
@@ -181,7 +181,7 @@ nightlies: init js css zip docs
181181 # Time to put these on the CDN
182182 @@mkdir -p tmp/nightlies
183183 @@mv ${OUTPUT} tmp/nightlies/$$(date "+%Y%m%d" )
184- @@scp -r tmp/nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
184+ @@scp -qr tmp/nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
185185 # Do some cleanup to wrap it up
186186 @@rm -rf tmp
187187 # -------------------------------------------------
@@ -192,12 +192,17 @@ deploy: init js css docs zip
192192 # Deploying all the files to the CDN
193193 @@mkdir tmp
194194 @@cp -r ${OUTPUT} tmp/${VER_OFFICIAL}
195- @@scp -r tmp/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
195+ @@scp -qr tmp/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
196196 @@rm -rf tmp/${VER_OFFICIAL}
197- # Create the Demos/Docs/Tests/Tools for jQueryMobile.com
198197 @@mv ${OUTPUT} /demos tmp/${VER_OFFICIAL}
199- # ... And copied to the CDN and the jquerymobile.com server
200- @@scp -r tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
198+ # Create the Demos/Docs/Tests/Tools for jQueryMobile.com
199+ # ... By first replacing the paths
200+ @@find tmp/${VER_OFFICIAL} -type f \
201+ \( -name ' *.html' -o -name ' *.php' \) \
202+ -exec perl -pi -e \
203+ ' s|src="(.*)${NAME}.min.js"|src="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.js"|g;s|href="(.*)${NAME}.min.css"|href="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.css"|g;s|src="(.*)jquery.js"|src="//code.jquery.com/jquery-1.6.4.js"|g' {} \;
204+ # ... So they can be copied to jquerymobile.com
205+ @@scp -qr tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
201206 # Do some cleanup to wrap it up
202207 @@rm -rf tmp
203208 @@rm -rf ${OUTPUT}
0 commit comments