#!/bin/bash

# Sync with a local web server and render an index page

args="$@"

for net in bitcoin testnet; do
  if [ -e ~/.txoo/$net/public ]; then
    rsync -a ~/.txoo/$net/public/ /var/www/html/txoo/$net/
    ./contrib/render-txoo /var/www/html/txoo/$net/
  fi
done
