Setting CCASE_HOST_TYPE in a shell startup script
Learn how to set up CCASE_HOST_TYPE in a shell startup
script.
In some parallel build environments, you might find it convenient to have your shell startup script set CCASE_HOST_TYPE. For example, your team might support an application on several architectures.
In this situation, you build the application for a particular architecture as follows:
- Log in to a host of that architecture.
- Set a view and go to the appropriate directory.
- Enter a clearmake -J command to start a parallel build. If any warnings or errors occur with clearmake -J, see clearmake.
To implement such a scheme:
- Use architecture-specific build hosts files. Give each build hosts file a file name extension that names a target architecture. Typically, each file lists hosts of one architecture only.
- Set CCASE_HOST_TYPE according to the local host's architecture. Include a
routine in your shell startup file that determines the hardware or software architecture of
the local host, and sets CCASE_HOST_TYPE to one of the file name extension
strings: linux_x86_64, and so on. Here is a code fragment from a C shell
startup script:
case "Linux*x86_64": setenv CCASE_HOST_TYPE linux_x86_64 breaksw ...