#!/bin/bash
#==============================================================================
#
#        USAGE: ./update_rfcs.sh  
#
#  DESCRIPTION: update the status of RFCs from the Trello Board to the hilis
#  database
#==============================================================================

# CPAN modules installed in raj home directory
export PERL5LIB=/home/raj/perl5/lib/perl5

#TRELLO_TEST='--testing'
TRELLO_TEST=''
# make new Trello issue if database contains record with no remote_id
rfc $TRELLO_TEST create
# recreate any incomplete rfcs that have been archived or deleted before update
rfc $TRELLO_TEST recreate
# update status in database if they are 'complete' or 'rejected' in Trello 
rfc $TRELLO_TEST update

