Changeset 5068 for audit_distribution.py
- Timestamp:
- Feb 20, 2008, 5:24:45 PM (17 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
audit_distribution.py
r5064 r5068 1 """Audit the directories flagged for released 2 3 This module forms an easy way to audit data files in the repository without 4 running create_distribution. 5 6 The benefit is that license files can be tested before being checked in. 7 8 Note: This script will work on all data whether it is part of the 9 repository or not. Before creating a license file for a data file it is a good idea to see if it is part of the repository or not (in which case there is no need). This can be done using svn status or by deleting the offending area and do a fresh svn update. 10 11 Ole Nielsen, GA 2008 12 """ 13 14 1 15 from anuga.utilities.data_audit_wrapper import IP_verified 2 16 from os.path import join 3 17 18 from dirs_to_distribute import dirmap 19 #print dirmap 4 20 5 # Roughly the same as what is being released 6 dirs_to_distribute = [join('anuga_core', 'source', 'anuga'), 7 'anuga_validation', 8 join('anuga_core', 'documentation', 'user_manual')] 9 10 # Individual segments 11 #dirs_to_distribute = ['anuga_validation'] 12 #dirs_to_distribute = [join('anuga_core', 'documentation', 'user_manual')] 13 #dirs_to_distribute = [join('anuga_core', 'source', 'anuga')] 14 15 16 17 for dir in dirs_to_distribute: 21 for dir in dirmap: 18 22 if not IP_verified(dir, verbose=True): 19 23 pass
Note: See TracChangeset
for help on using the changeset viewer.