Changeset 5068 for audit_distribution.py


Ignore:
Timestamp:
Feb 20, 2008, 5:24:45 PM (17 years ago)
Author:
ole
Message:

Refactored dirs to distribute into separate module and updated create and audit scripts.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • audit_distribution.py

    r5064 r5068  
     1"""Audit the directories flagged for released
     2
     3This module forms an easy way to audit data files in the repository without
     4running create_distribution.
     5
     6The benefit is that license files can be tested before being checked in.
     7
     8Note: This script will work on all data whether it is part of the
     9repository 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
     11Ole Nielsen, GA 2008
     12"""
     13
     14
    115from anuga.utilities.data_audit_wrapper import IP_verified
    216from os.path import join
    317
     18from dirs_to_distribute import dirmap
     19#print dirmap
    420
    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:
     21for dir in dirmap:
    1822    if not IP_verified(dir, verbose=True):
    1923        pass
Note: See TracChangeset for help on using the changeset viewer.