1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 return os
.stat(path
).st_mtime
12 if e
.errno
== errno
.ENOENT
:
16 def rebuild_check(args
):
34 print 'Rebuilding %s because %s changed and %s was removed' % (target
, ', '.join(newer
), ', '.join(removed
))
36 print 'Rebuilding %s because %s changed' % (target
, ', '.join(newer
))
38 print 'Rebuilding %s because %s was removed' % (target
, ', '.join(removed
))
40 print 'Rebuilding %s for an unknown reason' % target
42 if __name__
== '__main__':
44 rebuild_check(sys
.argv
[1:])