build/pymake/mkformat.py
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Mon, 17 Nov 2014 02:02:21 -0800
changeset 216076 04b37e14c1ec4e74ac1595b22f4bd80565df2bca
parent 101585 e97779ff22631981d1d593a531de55a7a8655655
permissions -rwxr-xr-x
Bumping manifests a=b2g-bump

#!/usr/bin/env python

import sys
import pymake.parser

filename = sys.argv[1]
source = None

with open(filename, 'rU') as fh:
    source = fh.read()

statements = pymake.parser.parsestring(source, filename)
print statements.to_source()