#!/bin/sh
#
# Script for pushing my website to the server. This must be run from the dir
# containing drummyfish_files.
#
# NOTE: if cmark-gfm is unavailable, use something similar and make a symblink
# in /usr/bin so that cmark-gfm calls it.

TMP_DIR=/home/tastyfish/_www

rm -rf $TMP_DIR
mkdir $TMP_DIR
cd $TMP_DIR
cp -r ../drummyfish_files/collab_free/drummy_stuff/www/* .
./make_works.sh
cp -r /home/tastyfish/git/less_retarded_wiki .
cd less_retarded_wiki
git pull
./make.sh
mv html ../lrs
mv full/lrs_wiki.html ..
mv full/lrs_wiki.txt ..
cd ..
rm -rf less_retarded_wiki

rm -rf /home/tastyfish/www
mv $TMP_DIR /home/tastyfish/www
