source: dirs_to_distribute.py @ 5079

Last change on this file since 5079 was 5068, checked in by ole, 17 years ago

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

File size: 838 bytes
Line 
1"""This module contains a dictionary of directories flagged for distribution.
2The format is
3
4{source_dir: destination_dir}
5
6where source_dir is an existing directory in the repository.
7The value of destination_dir will determine the directory name in the
8distribution tarball.
9If destination_dir is None, the name source_dir will be used also for
10the destination_dir.
11
12Example:
13
14dirmap = {join('anuga_core', 'source', 'anuga'): 'anuga'}
15
16"""
17
18from os.path import join
19
20dirmap = {}
21dirmap[join('anuga_core', 'source', 'anuga')] = 'anuga'
22dirmap[join('anuga_validation', 'okushiri_2005')] = None
23dirmap[join('anuga_validation', 'automated_validation_tests')] = None
24dirmap[join('anuga_core', 'documentation', 'user_manual', 'demos')] = None
25
26
27# Expand None
28for key in dirmap:
29    if dirmap[key] is None:
30        dirmap[key] = key
31
32       
Note: See TracBrowser for help on using the repository browser.