build_alt_modpop.py

This tool creates alternative population and action directories for “short” compilations of QHGMain with one or more population classes.

Code: build_alt_modpop.py

Usage

${QHG4_DIR}/useful_stuff/build_alt_modpop.py <prefix> <pop_name>+

where

prefix

prefix to be used for the naming of the alternative popuation and action subdirectories

pop_name

name of a class whose c++ and h files are in the population subdirectory

The prefix can la have the form path/to/alt_dirs/tut_05. If the path does not exist, all the necessary intermediate subdirectories will be created.

Example

${QHG4_DIR}/useful_stuff/build_alt_modpop.py temp2 tut_PatrhenoPop tut_EnvironAltPop

This will create the directories temp2_mod and temp2_pop filled with (links to) the files needed to compile QHGMain with the populations tut_PatrhenoPop and tut_EnvironAltPop