-
Notifications
You must be signed in to change notification settings - Fork 6
install
oxnz edited this page Dec 9, 2014
·
1 revision
The install script under tool is intend to one line install
The install script separate the install progress to several state:
This state first define global variables and some common functions such as error display and clean-up, etc., then parse the command line arguments and set the corresponding variable for later use.
This stage does not generate any files or directories.
-
PROGNAMEprogram name, original is 'INSTALL' -
VERBOSEverbose level, original is 0 -
DEBUGwhether in debug mode -
LOGFILElog file will generated
-
msgdumpdisplay a message -
errdumpdisplay error message, this function prefix the message byPROGNAMEand error level, then call themsgdumpand redirectmsgdump's output tostderr -
cleanclean all the generated stuff on incomplete install
This stage will do all the write things
- download the archive
- extract to
.shellunderHOMEdirectory - invoke the bootstrap undef
~/${HOME}/.shell/tool/bootstrap
This stage report the install info, i.e. what is installed, install to where and etc.