3 # Make sure /usr/local/bin is on the path
 
   4 export PATH=$PATH:/usr/local/bin
 
   6 # Generate new statistics
 
   7 <%= @ruby %> <%= @directory %>/script/statistics > <%= @directory %>/tmp/data_stats.html
 
   9 # Move new statistics into place
 
  10 mv -f <%= @directory %>/tmp/data_stats.html /store/rails/stats
 
  12 # Mail statistics to Blackadder
 
  13 mail -s "OpenStreetMap Statistics" blackadderajr@gmail.com < /store/rails/stats/data_stats.html