Skip to content

Commit d815573

Browse files
committed
Modified the createrelease script to remove the build directories from the examples.
1 parent 3d5ff48 commit d815573

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎scripts/createrelease.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
from os import mkdir, makedirs, environ, chdir, getcwd, system
3+
from os import mkdir, makedirs, environ, chdir, getcwd, system, listdir
44
from os.path import join
55
from shutil import copy, copytree, move, rmtree
66

@@ -29,8 +29,12 @@ def RunXcode(project, target):
2929
rmtree(join(frameworkDir, 'CorePlotDocs.docset'), True)
3030
rmtree(join(frameworkDir, 'CorePlotTouchDocs.docset'), True)
3131

32-
# Remove old build directory
32+
# Remove old build directories
3333
rmtree(join(frameworkDir, 'build'), True)
34+
examples = listdir('examples')
35+
for ex in examples:
36+
exampleDir = join('examples', ex)
37+
rmtree(join(exampleDir, 'build'), True)
3438

3539
# Make directory bundle
3640
desktopDir = join(environ['HOME'], 'Desktop')

0 commit comments

Comments
 (0)