1#!/bin/sh 2TARGET=$1 3DIR=build-"$TARGET" 4CONFIGURE=do-"$TARGET"-configure 5shift 6 7mkdir $DIR 8trap 'rm -rf "$DIR"' 0 9(cd $DIR || exit 1 10 echo '##################################################' 11 echo '##########' ../scripts/"$CONFIGURE" -Dwerror=true "$@" 12 echo '##################################################' 13 ../scripts/$CONFIGURE "$@" 14 case $? in 15 0) 16 echo 'Configuration succeeded' 17 ;; 18 77) 19 echo 'Configuration skipped' 20 exit 0 21 ;; 22 *) 23 echo 'Configuration failed' 24 exit 1 25 ;; 26 esac 27 cat CMakeFiles/CMakeOutput.log 28 ninja && ninja test) || exit 1 29