equal
deleted
inserted
replaced
458 > |
458 > |
459 > # compute file content |
459 > # compute file content |
460 > content = [] |
460 > content = [] |
461 > for filename, ctxkey, wckey in combination: |
461 > for filename, ctxkey, wckey in combination: |
462 > cc = ctxcontent[ctxkey] |
462 > cc = ctxcontent[ctxkey] |
463 > if target == 'base': |
463 > if target == 'filelist': |
|
464 > print filename |
|
465 > elif target == 'base': |
464 > content.append((filename, cc[0])) |
466 > content.append((filename, cc[0])) |
465 > elif target == 'parent': |
467 > elif target == 'parent': |
466 > content.append((filename, cc[1])) |
468 > content.append((filename, cc[1])) |
467 > elif target == 'wc': |
469 > elif target == 'wc': |
468 > content.append((filename, wccontent[wckey](cc))) |
470 > content.append((filename, wccontent[wckey](cc))) |
474 > for filename, data in content: |
476 > for filename, data in content: |
475 > f = open(filename, 'w') |
477 > f = open(filename, 'w') |
476 > f.write(data + '\n') |
478 > f.write(data + '\n') |
477 > f.close() |
479 > f.close() |
478 > EOF |
480 > EOF |
|
481 |
|
482 check list of planned files |
|
483 |
|
484 $ python gen-revert-cases.py filelist |
|
485 modified_clean |
479 |
486 |
480 Script to make a simple text version of the content |
487 Script to make a simple text version of the content |
481 --------------------------------------------------- |
488 --------------------------------------------------- |
482 |
489 |
483 $ cat << EOF >> dircontent.py |
490 $ cat << EOF >> dircontent.py |