#!/bin/bash
#
# gabriel 2010/06/15
# gabriel 2011/04/01 update to biblehal

export PATH="/bin:/usr/bin:/usr/lib/biblehal"


if [ -f /etc/biblehal/biblehal.conf ]
then
   . /etc/biblehal/biblehal.conf
fi

if "z${LABORATORY}" = "z" ]
then
   echo "LABORATORY must be configure in /etc/biblehal/biblehal.conf"
   exit 1
fi


for year in  $(( $(date +%Y) -1 )) $(date +%Y)
do
   biblehal-pop ${LABORATORY} ${year}
   
   biblehal-explode ${year}
done
