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

cd /www/www-data/Akce

[ ! -s data_atr_old ] && ls -l data2002.raw > data_atr_old

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

# now create data_atr_new
ls -l data2002.raw > data_atr_new

# if unequal, run generation
if diff data_atr_new data_atr_old > /dev/null 
 then
   echo "file attributes unchanged" > /dev/null
else
#   echo "file attributes changed"
   cleandata.sh
fi

cat data_atr_new > data_atr_old  
