From 8c3ef648abdad235f19f1409d314d41d597c9bdb Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 5 Apr 2012 17:56:53 +0200 Subject: [PATCH] update build script --- tools/build/build.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/build/build.py b/tools/build/build.py index 9b5eae99..f32b72c9 100755 --- a/tools/build/build.py +++ b/tools/build/build.py @@ -155,10 +155,16 @@ def build_oxjs(geo): os.listdir(root_path + 'examples/') ), 'readme': map( - lambda x: x.split('.')[0], + lambda x: { + 'date': time.strftime( + '%Y-%m-%d %H:%M:%S', + time.gmtime(os.path.getmtime(root_path + 'readme/html/' + x)) + ), + 'name': x.split('.')[0] + }, filter( lambda x: not re.match('^[\._]', x), - os.listdir(root_path + 'readme/html') + os.listdir(root_path + 'readme/html/') ) ) }