Re-adding accidently removed line

This brings back the previous way to copy the data directory,
as suggested by @elemoine.
This commit is contained in:
ahocevar
2013-04-09 13:22:04 +02:00
parent 696fc8c4f7
commit 97f7eb3db3

View File

@@ -626,10 +626,10 @@ def host_examples(t):
t.makedirs(examples_dir)
t.rm_rf(build_dir)
t.makedirs(build_dir)
t.rm_rf(examples_dir)
t.cp_r('examples', examples_dir)
t.cp(EXAMPLES, examples_dir)
for example in [path.replace('.html', '.js') for path in EXAMPLES]:
split_example_file(example, examples_dir % vars(variables))
t.cp_r('examples/data', examples_dir + '/data')
t.cp('bin/loader_hosted_examples.js', examples_dir + '/loader.js')
t.cp('build/ol.js', 'build/ol-simple.js', 'build/ol-whitespace.js',
'build/ol.css', build_dir)