mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
build fiddling
This commit is contained in:
@@ -30,6 +30,9 @@ sed -i -e "s|<link rel=stylesheet type=text/css href=dip3.css>|<style>${css}</st
|
||||
sed -i -e "s|dip3\.js|http://wearehugh.com/dip3/${revision}.js|g" build/*.html
|
||||
sed -i -e "s|html5\.js|http://wearehugh.com/dip3/html5.js|g" build/*.html
|
||||
|
||||
# images will be served from a separate domain
|
||||
sed -i -e "s|bsb.png|http://wearehugh.com/dip3/bsb.png|g" build/*.html
|
||||
|
||||
# minimize URLs
|
||||
sed -i -e "s|=http:|=|g" build/*.html
|
||||
sed -i -e "s|href=index.html|href=/|g" build/*.html
|
||||
@@ -38,5 +41,5 @@ sed -i -e "s|href=index.html|href=/|g" build/*.html
|
||||
chmod 644 build/*.html build/*.css build/*.js build/examples/*.py build/examples/*.txt build/*.txt build/*.png
|
||||
|
||||
# ship it!
|
||||
rsync -essh -avzP build/$revision.js build/html5.js diveintomark.org:~/web/wearehugh.com/dip3/
|
||||
rsync -essh -avzP build/*.html build/examples build/*.txt build/*.png diveintomark.org:~/web/diveintopython3.org/
|
||||
rsync -essh -avzP build/$revision.js build/html5.js build/*.png diveintomark.org:~/web/wearehugh.com/dip3/
|
||||
rsync -essh -avzP build/*.html build/examples build/*.txt diveintomark.org:~/web/diveintopython3.org/
|
||||
|
||||
Reference in New Issue
Block a user