Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore REM.CM to be separate file from greet file; Enable chaining of medley runs using REM.CM file #2027

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fghalasz
Copy link
Member

This PR does the following:

  1. Fixed INTERPRET.REM.CM so that it no longer tries to load the file pointed to by LDEINIT and instead loads the file pointed to by LDEREMCM. LDEINIT remains the file used by greet. REM.CM file format remains as before - must start and end with double-quote character so file can be read as a string. Note that the REM.CM file is eval'd AFTER greet processing.

  2. Adjusted the medley script to have a new argument -cm (or --rem.cm) which takes the name of a "REM.CM" file and sets LDEREMCM as appropriate before launching lde. If medley is called without -cm or -cm has value "-", no "REM.CM" file is used.

  3. Updated the loadup scripts as required to use this new -cm argument when invoking medley.

  4. Repeat feature added to medley script: Added a new feature to the medley script. The -cc (or --repeat) argument specifies a REM.CM file. The -cc flag signals that when the initial medley run finishes, it should check for the -cc file. If that file exists (and is not zero-length), medley is run again (i.e., repeated) with LDEREMCM set to the -cc file. This repeats until the -cc file no longer exists or is zero-length. Inside Medley, the -cc file can be found using (UNIX-GETENV 'LDEREPEATCM) so that each invocation of medley can modify (or delete) this file so as to change the subsequent run of medley or terminate the chain.

Except for the -cm changes, loadup scripts remain unchanged in this PR. A subsequent PR will include changes to the loadup scripts that we've been working on.

…inted to by LDEINIT and instead loads the file pointed to by LDEREMCM. LDEINIT remains the file used by greet. Adjusted the medley script to have a new argument -cm (or --rem.cm) which sets LDEREMCM as appropriate before launching lde. Updated the loadup scripts as required to use this new -cm argument when calling medley. Finally, added a new feature to the medley script -cc (or --repeat) whereby which when medley finishes it checks for a nonzero file given as the argument to -cc. If that file exists, medley is run again (i.e., repeated) with LDEREMCM set to that file. This repeats until this file no longer exists or is zero-length. The file can be found as the vale of LDEREPEATCM so that each invocation of medley can modify (or delete) this file so as to change the subsequent run of medley.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant