cad-install(1)

Michael Slinn (mslinn@micronauticsresearch.com)

10 May 2019

NAME

cad install - Cadenza Client™ installer.

SYNOPSIS

cad [OPTION]… install

cad [OPTION]… install status

DESCRIPTION

cad install is a command for installing Cadenza Client and other related projects on the local machine. Before installing, only the $cadenzaClient\bin\cadInstall script is available.

This script can be executed from any directory.

The BigSQL postgresql-client is automatically installed if not found. Update using pgc. TODO find another distribution, Amazon bought BigSQL and they stopped work on their product.

If the cadenzaClient environment variable is not set: 1) Make new subdirectory of current directory called cadenzaClient for that purpose. 2) Define cadenzaClient variable. 3) Persist it to $work/.evars.

If the cadenzaAssets environment variable is not set: 1) Make a sibling directory to $cadenzaAssets for that purpose called cadenzaAssets. 2) Define cadenzaAssets variable. 3) Persist it to $work/.evars.

If the cadenzaCreative environment variable is not set: 1) Make a sibling directory to $cadenzaClient for that purpose called cadenzaCreative. 2) Define cadenzaCreative variable. 3) Persist it to $work/.evars.

If the cadenzaCreativeBackup environment variable is not set: 1) Issue a warning 2) Make a comment in $work/.evars.

If the cadenzaCurriculum environment variable is not set: 1) Make a sibling directory to $cadenzaClient for that purpose called cadenzaCurriculum. 2) Define cadenzaCurriculum variable. 3) Persist it to $work/.evars.

If the cadenzaServer environment variable is not set: 1) Make a sibling directory to $cadenzaClient for that purpose called ‘cadenzaServer’. 2) Define cadenzaServer variable. 3) Persist it to $work/.evars.

If the cadenzaCreativeBackup environment variable is not set: 1) Issue a warning 2) Make a comment in $work/.evars.

Dependencies

cadInstall installs user dependencies:

Developers should also install bats-core for unit testing.

ACTION_OPTIONS

-a dirname
Use dirname for cadenzaAssets
-c dirname
Use dirname for cadenzaClient
-d dirname
Use dirname for cadenzaCurriculum
-g dirname
Use dirname for cadenzaServer
-h
Shows this man page.
-p
Populate the directories if empty, and if possible.
-v dirname
Use dirname for cadenzaCreative.

EXAMPLES

cad install
Runs interactive installation. Makes directories called cadenzaAssets, cadenzaClient, cadenzaCreative, cadenzaCurriculum and cadenzaServer. If environment variables are undefined, create them below the current directory, otherwise create them where the environment variables of the same name point to.
cad install -h
Shows this man page.
cad install -c "$cadenzaClient"
Make directory if it does not exist, default actions on cadenzaAssets, cadenzaServer, cadenzaCurriculum and cadenzaCreative directories.
cad install -d "$HOME/cadenzaCurriculum"
Make directory if it does not exist, default actions on cadenzaAssets, cadenzaServer, cadenzaClient and cadenzaCreative directories. Copies seed/cadenzaCurriculum.json to $cadenzaCurriculum. See the cadenzaCurriculum documentation for more information.
cad install -v "$HOME/cadenzaCreative"
Make directory if it does not exist, default actions on cadenzaAssets, cadenzaServer, cadenzaClient and cadenzaCurriculum directories.
cad install -c /mnt/c/work/training/cadenzaClient -d /mnt/c/work/training/lectures -g /mnt/c/work/training/cadenza -v /mnt/n"
Make all directories if they do not exist

LICENSE

Copyright © 2019 Michael Slinn.

Proprietary commercial license.

SEE ALSO

cad(1)