#!/bin/sh # # Test if participants changed, if yes run production of pages # # (c) 2000 J.Bukovy / M.Svoboda STK # cd /www/www-data/elag2001 [ ! -s report_atr_old ] && ls -l CountryInst.csv > report_atr_old # Test if running for the first time. If yes, create part_atr_old # now create report_atr_new ls -l CountryInst.csv > report_atr_new # if unequal, run generation if diff report_atr_new report_atr_old > /dev/null then echo "file attributes unchanged" > /dev/null else # echo "file attributes changed" gen_tempnames.sh gen_reports.sh gen_ctry.sh fi ls -l CountryInst.csv > report_atr_new cat report_atr_new > report_atr_old