X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=tools%2Fupdate%20web%20site;fp=tools%2Fupdate%20web%20site;h=6e325e7f811d9daa07a3e4226395c09be94a79f6;hb=b1018f11b8962bf5959a50c1b82202d39e489938;hp=9354db1e8d11fabdf7cb24886d8aa4d1668cd196;hpb=64208e53c58fc36863d1c81e90e402dfd8774863;p=qbasicapps.git diff --git a/tools/update web site b/tools/update web site index 9354db1..6e325e7 100755 --- a/tools/update web site +++ b/tools/update web site @@ -1,17 +1,24 @@ #!/bin/bash cd "${0%/*}"; if [ "$1" != "T" ]; then gnome-terminal -e "'$0' T"; exit; fi; -cd .. +( + cd .. -rsync -avz --delete -e 'ssh -p 10006' ./ \ - --include="*/" \ - --include="*.html" \ - --include="*.png" \ - --include="*.jpeg" \ - --include="*.blend" \ - --exclude="*" \ - n0@www3.svjatoslav.eu:/mnt/big/projects/qbasicapps/ + # Export org to html using emacs in batch mode + rm -f index.html + emacs --batch -l ~/.emacs --visit=index.org --funcall=org-html-export-to-html --kill + # Upload project homepage to the server. + rsync -avz --delete -e 'ssh -p 10006' ./ \ + --include="*/" \ + --include="*.html" \ + --include="*.png" \ + --include="*.jpeg" \ + --include="*.blend" \ + --exclude="*" \ + n0@www3.svjatoslav.eu:/mnt/big/projects/qbasicapps/ + +) echo "" echo "Press ENTER to close this window." read