build.sh 307 Bytes
#! /bin/bash

# Generate web page with graphical results

cp www/programme.template www/programme.html

IFS=$'\n'
for FILE in $(ls -1 data)
do
    if [ $(grep "\[$FILE\]" www/programme.html | tr -d '\n') ]
    then
        sed -i "s/\[$FILE\]/[$(head -c -1 -q data/$FILE)]/g" www/programme.html
    fi
done