Corrections as requested in pull request

This commit is contained in:
Dolf Starreveld 2016-12-01 01:33:49 -08:00
parent 2b37c30dd3
commit c739bd799e
2 changed files with 8 additions and 6 deletions

View File

@ -1,8 +1,5 @@
# Introduction
*Note*: Moonfire NVR is currently being rewritten from C++ into Rust. The text
below describes the C++ version. See also the "rust" branch.
Moonfire NVR is an open-source security camera network video recorder, started
by Scott Lamb &lt;<slamb@slamb.org>&gt;. It saves H.264-over-RTSP streams from
IP cameras to disk into a hybrid format: video frames in a directory on

11
prep.sh
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x
#
# This file is part of Moonfire NVR, a security camera network video recorder.
# Copyright (C) 2016 Scott Lamb <slamb@slamb.org>
@ -158,13 +158,18 @@ if [ ! -x "${SERVICE_BIN}" ]; then
echo
exit 1
fi
RUST_TEST_THREADS=1 cargo test
if ! cargo build --release; then
if ! RUST_TEST_THREADS=1 cargo test; then
echo "test failed. Try to run the following manually for more info"
echo "RUST_TEST_THREADS=1 cargo test --verbose"
echo
exit 1
fi
if ! cargo build --release; then
echo "Build failed."
echo "RUST_TEST_THREADS=1 cargo build --release --verbose"
echo
exit 1
fi
sudo install -m 755 target/release/moonfire-nvr ${SERVICE_BIN}
if [ -x "${SERVICE_BIN}" ]; then
echo "Binary installed..."; echo