forked from 0x2620/oxjs
remove /demos and /tests, update build script
This commit is contained in:
parent
ba1a3c4b2a
commit
65db8c9ee1
202 changed files with 5 additions and 370612 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue