Draft: Add compartmentalized global `camr` object with methods to manage paths and supplement `goto`.
Optional whether we merge this as I believe we are phasing out goto. These may be helpful in non-targets projects, however.
Several functions have been added to compartmentalize global variables and add path safety.
-
camr_cachecreates a global list calledcamrwhose elements may be modified through the camr functions only. -
camr_savesaves this object to disk in a file called.cache. -
camr_resetresets the list. -
camr_pushdandcamr_popdoperate as the shell commandspushdandpopd, allowing directory paths to be saved to and restored from a stack.
The camr origin is the initial working directory in which camr_cache is called (the project directory ideally).
The camr prefix is the directory against which relative paths are specified. For example a Dropbox folder or the origin.
-
camr_prefixdefines the prefix. -
camr_pathscreates the usual output directories under the prefix path.
Edited by Pascale, Michael Philip