1
0
Fork 0
forked from 0x2620/oxjs

remove /demos and /tests, update build script

This commit is contained in:
rolux 2012-06-18 11:11:05 +02:00
commit 65db8c9ee1
202 changed files with 5 additions and 370612 deletions

View file

@ -217,17 +217,16 @@ def copy_file(source, target):
write_file(target, read_file(source))
def filter_build(tarinfo):
if tarinfo.name == 'OxJS':
return tarinfo
if re.search('^OxJS/build', tarinfo.name):
name = tarinfo.name
if name == 'OxJS' or re.search('^OxJS/build', name):
return tarinfo
return None
def filter_source(tarinfo):
# FIXME: demos and tests should be removed anyway
if re.search('^OxJS/(demos|downloads/|tests|tools/geo/png/icons/)', tarinfo.name):
name = tarinfo.name
if re.search('^[._]', name) or re.search('/[._]', name) or re.search('~$', name):
return None
if re.search('/[._]', tarinfo.name) or re.search('~$', tarinfo.name):
if re.search('^OxJS/(downloads|tools/geo/png/icons)', name):
return None
return tarinfo