mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2025-04-16 03:51:25 +02:00
[SC64][BUILD] Moved time printing from docker_build.sh to build.sh
This commit is contained in:
parent
f546e5d17d
commit
3fbb6f3823
10
build.sh
10
build.sh
@ -163,6 +163,14 @@ if test $# -eq 0; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
print_time () {
|
||||
echo "Build took $SECONDS seconds"
|
||||
}
|
||||
|
||||
trap "echo \"Build failed\"; print_time" ERR
|
||||
|
||||
SECONDS=0
|
||||
|
||||
TRIGGER_BOOTLOADER=false
|
||||
TRIGGER_CONTROLLER=false
|
||||
TRIGGER_CIC=false
|
||||
@ -213,3 +221,5 @@ if [ "$TRIGGER_CIC" = true ]; then build_cic; fi
|
||||
if [ "$TRIGGER_FPGA" = true ]; then build_fpga; fi
|
||||
if [ "$TRIGGER_UPDATE" = true ]; then build_update; fi
|
||||
if [ "$TRIGGER_RELEASE" = true ]; then build_release; fi
|
||||
|
||||
print_time
|
||||
|
@ -14,8 +14,6 @@ if [ -t 1 ]; then
|
||||
DOCKER_OPTIONS="-it"
|
||||
fi
|
||||
|
||||
SECONDS=0
|
||||
|
||||
docker run \
|
||||
$DOCKER_OPTIONS \
|
||||
--rm \
|
||||
@ -33,12 +31,8 @@ docker run \
|
||||
$BUILDER_IMAGE \
|
||||
./build.sh $@
|
||||
|
||||
BUILD_ERROR=$?
|
||||
|
||||
echo "Build took $SECONDS seconds"
|
||||
BUILD_RESULT=$?
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
if [ $BUILD_ERROR -ne 0 ]; then
|
||||
exit -1
|
||||
fi
|
||||
exit $BUILD_RESULT
|
||||
|
Loading…
x
Reference in New Issue
Block a user