anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

build.sh (361B)


      1 #!/bin/bash
      2 set -exuo pipefail
      3 
      4 build_command()
      5 {
      6 	./bootstrap
      7 	./configure CFLAGS="-ggdb -O0" \
      8 		    --prefix=/usr \
      9 		    --enable-logging=verbose
     10 
     11 	nump=$(grep -c processor /proc/cpuinfo)
     12 	make -j$(( nump / 2 + 1 ))
     13 }
     14 
     15 print_logs()
     16 {
     17 	set +e
     18 	echo "Printing meson log"
     19 	cat build/meson-logs/meson-log.txt
     20 }
     21 
     22 if ! build_command ; then
     23 	print_logs
     24 	exit 1
     25 fi