#!/bin/sh
#
#	Test if participants changed, if yes run production of pages
#
#	(c) 2000-2003 J.Bukovy / M.Svoboda STK
#

cd /www/www-data/CASLIN03

[ ! -s part_atr_old ] && ls -l Ucastnici.csv > part_atr_old

# Test if running for the first time.  If yes, create part_atr_old

# now create part_atr_new
ls -l Ucastnici.csv > part_atr_new

# if unequal, run generation
if diff part_atr_new part_atr_old > /dev/null 
 then
   echo "file attributes unchanged" > /dev/null
else
#   echo "file attributes changed"
   gen_part.sh
fi

cat part_atr_new > part_atr_old  
