6 # Make sure /usr/local/bin is on the path
7 export PATH=$PATH:/usr/local/bin
9 # Generate new statistics
10 <%= @ruby %> -W0 <%= @directory %>/script/statistics > <%= @directory %>/tmp/data_stats.html
12 # Move new statistics into place
13 rsync --quiet <%= @directory %>/tmp/data_stats.html planet.openstreetmap.org::statistics
15 # Mail statistics to Blackadder
16 mail -s "OpenStreetMap Statistics" blackadderajr@gmail.com < <%= @directory %>/tmp/data_stats.html