Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Reduce verbosity of build script so it's easier to read #341

Merged
merged 1 commit into from
Sep 21, 2017

Conversation

shana
Copy link
Member

@shana shana commented Sep 21, 2017

The build.sh script was set up with a lot of verbosity to help debug, but now we don't need all of this, so reduce it to the essential output. Keep strict error checking and exit early if subcommands exit with errors flags.

@StanleyGoldman
Copy link
Contributor

I was curious...

http://heirloom.sourceforge.net/sh/sh.1.html

set [--aefhknptuvx [arg ...]]
 	
-- 	No effect; useful if the first arg begins with -.
-a 	Export any variables that are modified or created from now on.
-e 	If non interactive then exit immediately if a command fails.
-f 	File name generation is disabled.
-h 	When a function is defined, look up all external commands it contains as described for the hash special command. Normally, these commands are looked up when they are executed.
-k 	All keyword arguments are placed in the environment for a command, not just those that precede the command name.
-m 	Enables job control (see below).
-n 	Read commands but do not execute them.
-p 	Makes the shell privileged. A privileged shell does not execute the system and user profiles; if an non-privileged shell (the default) has an effective user or group id different to its real user or group id or if it has an effective user or group id below 100, it resets its effective user or group id, respectively, to the corresponding real id at startup.
-t 	Exit after reading and executing one command.
-u 	Treat unset variables as an error when substituting.
-v 	Print shell input lines as they are read.
-x 	Print commands and their arguments as they are executed.
- 	Turn off the -x and -v options.

These flags can also be used upon invocation of the shell. The current set of flags may be found in $-.

If + is used instead of -, the given flags are disabled.

Remaining arguments are positional parameters and are assigned, in order, to $1, $2, etc. If no arguments are given then the values of all names are printed. 

@shana
Copy link
Member Author

shana commented Sep 21, 2017

That's where the flag list is! Gah couldn't find it anywhere.

@shana shana merged commit d4c5ec9 into master Sep 21, 2017
@shana shana deleted the build/reduce-verbosity-of-build-script branch September 21, 2017 17:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants