From da6d94cf05375fb81858836f03e8cf6a1489277c Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 21 Jun 2012 23:15:35 +0200 Subject: [PATCH] update build.py (examples) --- tools/build/build.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tools/build/build.py b/tools/build/build.py index d9ab79b2..83b5158c 100755 --- a/tools/build/build.py +++ b/tools/build/build.py @@ -170,10 +170,19 @@ def build_oxjs(downloads=False, geo=False): lambda x: 'Ox.%s/Ox.%s.js' % (x, x), ['Geo', 'Image', 'Unicode'] )), - 'examples': filter( - lambda x: not re.search('^[._]', x), - os.listdir(root_path + 'examples/') - ), + 'examples': sorted(sum(map( + lambda x: filter( + lambda x: not re.search('/[._]', x), + map( + lambda y: x + '/' + y, + os.listdir(root_path + 'examples/' + x) + ) + ), + filter( + lambda x: not re.search('^[._]', x), + os.listdir(root_path + 'examples/') + ) + ), [])), 'readme': map( lambda x: { 'date': time.strftime(