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 = '../../' root_path = '../../'
source_path = root_path + 'source/' source_path = root_path + 'source/'
dev_path = root_path + 'dev/' dev_path = root_path + 'dev.tmp/'
min_path = root_path + 'min/' min_path = root_path + 'min.tmp/'
locales = {} locales = {}
version = get_version() version = get_version()
@ -299,6 +299,14 @@ def build_oxjs(downloads=False, geo=False):
if os.path.exists(build_path) and not os.path.islink(build_path[:-1]): if os.path.exists(build_path) and not os.path.islink(build_path[:-1]):
shutil.rmtree(build_path) 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): def copy_file(source, target):