Unverified Commit 871deab8 authored by Shawn Webb's avatar Shawn Webb
Browse files

Teach the build scripts how to skip building artifacts



Performing full builds during development of these scripts can chew up a
large chunk of time. Given that the process of building the artifacts
takes the majority of the time, but don't change much, provide a -S
option to skip building the artifacts. Uppercase is used as an
additional measure to prevent footshooting.

Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
github-issue:	#8
parent c5478b11
......@@ -77,7 +77,7 @@ main() {
config_set_defaults
while getopts 'c:f' o; do
while getopts 'c:Sf' o; do
case "${o}" in
c)
. ${OPTARG}
......@@ -85,6 +85,9 @@ main() {
f)
forcebuild=1
;;
S)
skip_build
;;
esac
done
......
......@@ -24,7 +24,15 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
_skip_build=0
skip_build() {
_skip_build=1
}
clean_build() {
[ ${_skip_build} -gt 0 ] && return 0
(
set -ex
......@@ -39,6 +47,8 @@ clean_build() {
}
build_hardenedbsd() {
[ ${_skip_build} -gt 0 ] && return 0
(
set -ex
......@@ -61,6 +71,8 @@ build_hardenedbsd() {
}
build_release() {
[ ${_skip_build} -gt 0 ] && return 0
(
set -ex
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment