toolkit/mozapps/installer/link-manifests.py
author Nicolas Silva <nsilva@mozilla.com>
Wed, 11 Apr 2012 14:04:54 -0400
changeset 91631 e20a19a790dd484cf270d8cad262dfaeacd6d3f3
parent 49201 476bdda74315923804466207e18f7859ad813af5
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 743830: Added 'gfx.xrender.enableded' pref (true by default). The pref is fetched in gfPlatformGtk.cpp and can be accessed through gfxPlatformGtk::UseXRender(). UseXRender is used in GLContextProviderGLX to set mUseTextureFromPixmap. r=jrmuizel,gw280

import sys, os

outmanifest = sys.argv[1]
manifestdirs = sys.argv[2:]

outfd = open(outmanifest, 'w')

for manifestdir in manifestdirs:
    if not os.path.isdir(manifestdir):
        print >>sys.stderr, "Warning: trying to link manifests in missing directory '%s'" % manifestdir
        continue

    for name in os.listdir(manifestdir):
        infd = open(os.path.join(manifestdir, name))
        print >>outfd, "# %s" % name
        outfd.write(infd.read())
        print >>outfd
        infd.close()

outfd.close()