# HG changeset patch # User Mattijs Hoitink # Date 1328540383 -3600 # Node ID 95130cb611637dfae69ceefd05a26acbfa613777 # Parent ee62f412c6efcae600ffb9c7cd86681661096885 Blindly copy entire resources directory diff -r ee62f412c6ef -r 95130cb61163 d/base.py --- a/d/base.py Mon Feb 06 15:45:14 2012 +0100 +++ b/d/base.py Mon Feb 06 15:59:43 2012 +0100 @@ -83,9 +83,6 @@ if name not in ['footer', 'index']: yield filename -def _copy_raw_file(filename): - shutil.copyfile(j(up(__file__), 'resources', filename), - j(BUILD_LOC, '_dmedia', filename)) def _get_footer(): if os.path.isfile('./footer.markdown'): @@ -242,7 +239,9 @@ title = _get_project_title() footer = _get_footer() - map(_copy_raw_file, ['bootstrap.css', 'style.less', 'less.js', 'tango.css']) + resources = j(up(__file__), 'resources') + for filename in os.listdir(j(up(__file__), 'resources')): + shutil.copyfile(j(resources, filename), j(destination, '_dmedia', filename)) chapters = [] for filename in _find_chapters():