Skip to content

Commit

Permalink
Simplified script output slightly for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
migurski committed Feb 20, 2012
1 parent bddca21 commit a739534
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions check-bounds.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@ close(handle)
chmod(filename, 0666)
script = open(filename, 'w')

print >> script, 'apt-get -y install git htop >> /var/log/tiledrawer.log 2>&1'
print >> script, 'git clone -b config http://tiledrawer.com/.git/ /usr/local/tiledrawer >> /var/log/tiledrawer.log 2>&1'
print >> script, '/usr/local/tiledrawer/setup.sh >> /var/log/tiledrawer.log 2>&1'
print >> script, '/usr/local/tiledrawer/populate.py -b %(bounds)s -s %(style)s %(hrefs)s >> /var/log/tiledrawer.log 2>&1' % locals()
print >> script, '/usr/local/tiledrawer/draw.sh >> /var/log/tiledrawer.log 2>&1'
print >> script, '('
print >> script, 'apt-get -y install git htop'
print >> script, 'git clone -b config http://tiledrawer.com/.git/ /usr/local/tiledrawer'
print >> script, '/usr/local/tiledrawer/setup.sh'
print >> script, '/usr/local/tiledrawer/populate.py -b %(bounds)s -s %(style)s %(hrefs)s' % locals()
print >> script, '/usr/local/tiledrawer/draw.sh'
print >> script, ') >> /var/log/tiledrawer.log 2>&1'

print >> stdout, 'X-Extract-Count: %s' % len(href_list)
print >> stdout, 'X-Extract-Size: %s' % nice_size(size)
Expand Down

0 comments on commit a739534

Please sign in to comment.