diff options
author | Richard Wall <richard@largo> | 2011-06-18 16:18:33 +0100 |
---|---|---|
committer | Richard Wall <richard@largo> | 2011-06-18 16:18:33 +0100 |
commit | 4a25637c2af68b667082851c02746c88f5ed9f40 (patch) | |
tree | 6d5b48ad4219053d0da69a18bfe1788a25608f0d /jarmonbuild | |
parent | bd007c8ef6386e9d15fc0841876512dc77eb4c9b (diff) |
print a timestamp into compiled javascript file
Diffstat (limited to 'jarmonbuild')
-rw-r--r-- | jarmonbuild/commands.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jarmonbuild/commands.py b/jarmonbuild/commands.py index 398ba71..2e0983b 100644 --- a/jarmonbuild/commands.py +++ b/jarmonbuild/commands.py @@ -11,6 +11,7 @@ import sys import httplib import urllib +from datetime import datetime from optparse import OptionParser from subprocess import check_call, PIPE from tempfile import gettempdir @@ -230,7 +231,6 @@ class BuildTestDataCommand(BuildCommand): Create an RRD file with values 0-9 entered at 1 second intervals from 1980-01-01 00:00:00 (the first date that rrdtool allows) """ - from datetime import datetime from pyrrd.rrd import DataSource, RRA, RRD start = int(datetime(1980, 1, 1, 0, 0).strftime('%s')) dss = [] @@ -292,6 +292,8 @@ class BuildJavascriptDependenciesCommand(BuildCommand): conn.request('POST', '/compile', urllib.urlencode(params), headers) response = conn.getresponse() with open(depjs_path, 'w') as f: + f.write( + '// Compiled with closure-compiler on %s\n' % (datetime.now())) for param in params: f.write('// @%s %s\n' % param) |