Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Also create subdirectories when packaging

  • Loading branch information...
commit 56cec38d5686556790e1d2b130be2023aeef1f2a 1 parent e43c7b9
David Mohr authored
Showing with 16 additions and 8 deletions.
  1. +16 −8 wscript
View
24 wscript
@@ -113,25 +113,33 @@ def build (ctx):
print "Creating package..."
def glob (dirname, pattern):
- return dirname, ctx.path.ant_glob (dirname + '/' + '*.c', relative_trick=True) + ' '
+ files = ctx.path.ant_glob (dirname + '/' + pattern, relative_trick=True) + ' '
+
+ # find all subdirectories
+ dirs = set([dirname])
+ for f in files.rstrip().split(' '):
+ subdir = os.path.dirname (f)
+ dirs.add(subdir)
+
+ return dirs, files
dirs = []
files = ''
d, fns = glob ('src', '*.c')
- dirs.append(d)
+ dirs += d
files += fns
d, fns = glob ('src', '*.h')
- dirs.append(d)
+ dirs += d
files += fns
d, fns = glob ('reboot', '*')
- dirs.append(d)
+ dirs += d
files += fns
- d, fns = glob ('icons', '**')
- dirs.append(d)
+ d, fns = glob ('icons', '**/*')
+ dirs += d
files += fns
- d, fns = glob ('win32', '**')
- dirs.append(d)
+ d, fns = glob ('win32', '*')
+ dirs += d
files += fns
files += ctx.path.ant_glob ('README*', relative_trick=True) + ' '
Please sign in to comment.
Something went wrong with that request. Please try again.