Browse Source

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 <shawn.webb@hardenedbsd.org>
github-issue:	#8
master
Shawn Webb 9 months ago
parent
commit
871deab8a7
Signed by: shawn.webb <shawn.webb@hardenedbsd.org> GPG Key ID: FF2E67A277F8E1FA
2 changed files with 16 additions and 1 deletions
  1. +4
    -1
      bin/ci.sh
  2. +12
    -0
      lib/build.sh

+ 4
- 1
bin/ci.sh View File

@@ -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



+ 12
- 0
lib/build.sh View File

@@ -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



Loading…
Cancel
Save