Update installation documentation
[qbasicapps.git] / tools / update web site
index 9354db1..6e325e7 100755 (executable)
@@ -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