Sebastian Moors wrote:
> I found a solution in the ardour sconstruct file and i'm going to test
> and implement it this week.
> I'm also trying to fix the problems with the graphic files, it seems
> that we have to add each one
> to the install builder in scons. Hope it works before the weekend :)
>
It may be possible to use Python's os.walk() instead of adding them
explicitly in the source file:
for root, dirs, files in os.walk('./data'):
if root.find(".svn") != -1:
continue
for name in files:
thisitem = os.path.join(root, name)
env.Alias(target="install", source=env.Install(dir=
destdir + install_prefix + '/share/hydrogen/' + root, source=thisitem))
instead of the whole litany for the data directory.
On the other hand, it won't work well if there are junk files in the
data dir it will install them too, so it may be useful to add some
filtering for filenames. Depends what's considered worse - copying junk
or forgetting to add some important files to the list.
Krzysztof
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel