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