3
# Copyright 2009 Canonical Ltd. This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
6
"""Create a control file of file that should be migrated."""
10
from find import find_files
11
from migrater import OLD_TOP
14
TLA_COMMON_MAP = dict(
17
blu=['blueprint', 'specification', 'sprint', 'specgraph'],
30
"""Run the command line operations."""
31
skip_dir_pattern = r'^[.]|templates|icing'
32
for file_path in find_files(OLD_TOP, skip_dir_pattern=skip_dir_pattern ):
33
file_path = file_path.replace(OLD_TOP, '.')
35
for app_code in TLA_COMMON_MAP:
36
for common_name in TLA_COMMON_MAP[app_code]:
37
if common_name in file_path:
40
print '%s %s' % (code, file_path)
43
if __name__ == '__main__':