Changeset 310 for tbroadcast/v2.0.3/python
- Timestamp:
- Nov 12, 2006, 12:03:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tbroadcast/v2.0.3/python/tbroadcast.py
r307 r310 495 495 def generate_make (self, file, command): 496 496 makefile = open (file, 'w+') 497 self.counter = len(self.packages) 497 498 self.recursive_make (self.current_package, command, makefile, len(self.packages)) 498 499 makefile.close () … … 506 507 actions.append(pkg) 507 508 indice = indice - 1 509 self.counter = self.counter - 1 508 510 self.recursive_make(pkg, command,makefile, indice, actions) 509 511 … … 515 517 516 518 # add the action itself 517 newcommand = string.replace (command, '<package>', package) 519 newcommand = string.replace (command, '<package>', package) 520 if command =='': 521 newcommand='$(COMMAND)' 518 522 lines = lines + '\n' 519 523 lines = lines + '\t@echo "#--------------------------------------------------------------"\n' 520 lines = lines + '\t@echo "# ('+str( indice)+'/'+str(len(self.packages))+') Now trying ['+newcommand+'] in '+ self.packages[package]['path']+'"\n'524 lines = lines + '\t@echo "# ('+str(self.counter)+'/'+str(len(self.packages))+') Now trying ['+newcommand+'] in '+ self.packages[package]['path']+'"\n' 521 525 lines = lines + '\t@echo "#--------------------------------------------------------------"\n' 522 526 lines = lines + '\t@cd ' + self.packages[package]['path']
Note: See TracChangeset
for help on using the changeset viewer.