build/pymake/mkparse.py
author Mike Hommey <mh+mozilla@glandium.org>
Sat, 04 Aug 2012 08:48:56 +0200
changeset 106884 2ef51674316aadfe26a46877b16794f758bf4b6d
parent 99131 e5e7f60fe0bed65a97963e5d5c9adc0d379a8f3e
permissions -rwxr-xr-x
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted

#!/usr/bin/env python

import sys
import pymake.parser

for f in sys.argv[1:]:
    print "Parsing %s" % f
    fd = open(f, 'rU')
    s = fd.read()
    fd.close()
    stmts = pymake.parser.parsestring(s, f)
    print stmts