avoid missing files during oxjs build

This commit is contained in:
j 2015-04-18 12:31:55 +02:00
parent fc982fe775
commit cf1cbdffaf

View file

@ -35,8 +35,8 @@ def build_oxjs(downloads=False, geo=False):
root_path = '../../'
source_path = root_path + 'source/'
dev_path = root_path + 'dev/'
min_path = root_path + 'min/'
dev_path = root_path + 'dev.tmp/'
min_path = root_path + 'min.tmp/'
locales = {}
version = get_version()
@ -298,7 +298,15 @@ def build_oxjs(downloads=False, geo=False):
build_path = root_path + 'build/'
if os.path.exists(build_path) and not os.path.islink(build_path[:-1]):
shutil.rmtree(build_path)
write_link('min', build_path[:-1])
write_link('min', build_path[:-1])
real_dev_path = root_path + 'dev/'
real_min_path = root_path + 'min/'
if os.path.exists(real_dev_path):
shutil.rmtree(real_dev_path)
shutil.move(dev_path,real_dev_path)
if os.path.exists(real_min_path):
shutil.rmtree(real_min_path)
shutil.move(min_path,real_min_path)
def copy_file(source, target):