#!/bin/bash cd "${0%/*}"; if [ "$1" != "T" ]; then gnome-terminal -e "'$0' T"; exit; fi; ( cd .. # 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