Response to Issue #2198: loadup and medley scripts can now store/retrieve loadup files to/from named subdirectories of MEDLEYDIR/loadups #2200
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates both the loadup and medley scripts (and their man-pages) to enable loadup products to be stored into and retrieved from named subdirectories under MEDLEYDIR/loadups. By default the subdirectory is named for the git branch current when loadup is run. But the name can also be specified as a argument to the loadup script.
For the loadup script:
./loadup --branch [BRANCH | -] ...
will store the loadup outputs (and work subdirectories) into a subdirectory named MEDLEYDIR/loadups/branches/BRANCH. If BRANCH is not specified or is "-" then the name of the currently active git branch is used, except if no git or MEDLEYDIR is not a git directory, then the --branch flag is ignored. BRANCH can contain alphanumerics, dashes, underscores and periods. Any other character is coerced to an underscore. This holds for git branch names as well as BRANCHes specified on the command line. -br is a synonyms of --branch. If no --branch is specified, then files are stored in the top level of MEDLEYDIR/loadups as before.For the medley script:
./medley --branch [ BRANCH | -] ...
will run the sysouts from the MEDLEYDIR/loadups/branches/BRANCH directory. Also the env variable MEDLEY_LOADUPS_DIR will be set to this directory for ease of finding, e.g., exports.all, from Lisp. If BRANCH is specified as "-", then the name of the currently active git branch will be used as BRANCH. As for the loadup script, BRANCH can contain alphanumerics, dashes, underscores and periods. Any other character is coerced to an underscore. -br is a synonym for --branch.Man-pages have been updated accordingly.
This PR adds to the loadup script the the feature that if MEDLEYDIR is a git directory, then a file named gitinfo will be placed in the LOADUP_OUTDIR. gitinfo contains the git commit, git branch name and git status at the time the loadup is run.
Merged in PR#2208: Use the loadup step script names as the --id string.