Blame view

build.sh 307 Bytes
67cec455c   Louis-Claude Canon   Cleaner build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  #! /bin/bash
  
  # Generate web page with graphical results
  
  cp www/programme.template www/programme.html
  
  IFS=$'
  '
  for FILE in $(ls -1 data)
  do
      if [ $(grep "\[$FILE\]" www/programme.html | tr -d '
  ') ]
      then
          sed -i "s/\[$FILE\]/[$(head -c -1 -q data/$FILE)]/g" www/programme.html
      fi
  done