#!/bin/sh
#
# Export reponame.header|css|footer|th1-setup
#

FROM=$1
[ -n "$FROM" ] && FROM=freshcode
TO=$2
[ -n "$TO" ] && TO=github


DB=~/fossil.d/$FROM.fossil
REPO=`basename $DB .fossil`
TARGET=$TO/$TO

  for WHAT in css header footer #th1-setup tcl-setup
  do
    echo "select value from config where name='$WHAT';" | fossil sqlite -R $DB > $TARGET.$WHAT
  done

