LEFT | RIGHT |
1 '''· | 1 '''· |
2 Bake.py | 2 Bake.py |
3 | 3 |
4 This is the main Bake file, it stores all the classes related to the | 4 This is the main Bake file, it stores all the classes related to the |
5 basic Bake operation. The class Bake is responsible to identify and· | 5 basic Bake operation. The class Bake is responsible to identify and· |
6 execute the defined options·· | 6 execute the defined options·· |
7 ''' | 7 ''' |
8 | 8 |
9 import xml.etree.ElementTree as ET | 9 import xml.etree.ElementTree as ET |
10 from xml.etree.ElementTree import ParseError | 10 from xml.etree.ElementTree import ParseError |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 env = self._do_operation(config, options, _do_env_update) | 755 env = self._do_operation(config, options, _do_env_update) |
756 import os | 756 import os |
757 env.run([os.environ['SHELL']], directory=env.objdir, interactive=True) | 757 env.run([os.environ['SHELL']], directory=env.objdir, interactive=True) |
758 | 758 |
759 def _check(self, config, args): | 759 def _check(self, config, args): |
760 """Handles the check command line option.""" | 760 """Handles the check command line option.""" |
761 ········ | 761 ········ |
762 checkPrograms = [['python', 'Python'], | 762 checkPrograms = [['python', 'Python'], |
763 ['hg', 'Mercurial'], | 763 ['hg', 'Mercurial'], |
764 ['cvs', 'CVS'], | 764 ['cvs', 'CVS'], |
| 765 ['git', 'GIT'], |
765 ['bzr', 'Bazaar'], | 766 ['bzr', 'Bazaar'], |
766 ['tar', 'Tar tool'], | 767 ['tar', 'Tar tool'], |
767 ['unzip', 'Unzip tool'], | 768 ['unzip', 'Unzip tool'], |
768 ['unrar', 'Unrar tool'], | 769 ['unrar', 'Unrar tool'], |
769 ['git', 'GIT'], | 770 ['7z', '7z data compression utility'], |
| 771 ['unxz', 'XZ data compression utility'], |
770 ['make', 'Make'], | 772 ['make', 'Make'], |
771 ['cmake', 'cMake'], | 773 ['cmake', 'cMake'], |
772 ['patch', 'path tool'], | 774 ['patch', 'path tool'], |
773 ['autoreconf', 'Autotools'] | 775 ['autoreconf', 'Autotools'] |
774 ] | 776 ] |
775 parser = self._option_parser('build') | 777 parser = self._option_parser('build') |
776 (options, args_left) = parser.parse_args(args) | 778 (options, args_left) = parser.parse_args(args) |
777 def _do_env_check(configuration, module, env): | 779 def _do_env_check(configuration, module, env): |
778 return True | 780 return True |
779 ········ | 781 ········ |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 for name, function in ops:· | 1032 for name, function in ops:· |
1031 if args_left[0] == name: | 1033 if args_left[0] == name: |
1032 if options.debug: | 1034 if options.debug: |
1033 function(config=options.config_file, args=args_left[1:]) | 1035 function(config=options.config_file, args=args_left[1:]) |
1034 else: | 1036 else: |
1035 try: | 1037 try: |
1036 function(config=options.config_file, args=args_left[1:]) | 1038 function(config=options.config_file, args=args_left[1:]) |
1037 except Exception as e: | 1039 except Exception as e: |
1038 print ('\n'+e.message) | 1040 print ('\n'+e.message) |
1039 sys.exit(1) | 1041 sys.exit(1) |
LEFT | RIGHT |