1#!/usr/bin/env python2
2"""Prints out index for every object file, starting from 0."""
3
4from __future__ import print_function
5
6import sys
7
8from cros_utils import command_executer
9import common
10
11
12def Main():
13  ce = command_executer.GetCommandExecuter()
14  _, l, _ = ce.RunCommandWOutput(
15      'cat {0} | wc -l'.format(common.OBJECTS_FILE), print_to_console=False)
16  for i in range(0, int(l)):
17    print(i)
18
19
20if __name__ == '__main__':
21  Main()
22  sys.exit(0)
23