add populating RtspServer

This commit is contained in:
Isaac Connor 2021-03-18 16:18:21 -04:00
parent e39c293a77
commit dd714a018f
1 changed files with 18 additions and 0 deletions

View File

@ -117,6 +117,17 @@ commonprep () {
exit 1
fi
fi
if [ -e "build/RtspServer" ]; then
echo "Found existing RtspServer..."
else
echo "Cloning RtspServer ..."
git clone https://github.com/ZoneMinder/RtspServer
if [ $? -ne 0 ]; then
echo "ERROR: CakePHP-Enum-Behavior tarball retreival failed..."
exit 1
fi
fi
}
# Uncompress the submodule tarballs and move them into place
@ -137,6 +148,13 @@ movecrud () {
rmdir web/api/app/Plugin/CakePHP-Enum-Behavior
mv -f CakePHP-Enum-Behavior-${CEBVER} web/api/app/Plugin/CakePHP-Enum-Behavior
fi
if [ -e "dep/RtspServer/CMakeLists.txt" ]; then
echo "RtspServer already installed..."
else
echo "Copying RtspServer..."
rmdir dep/RtspServer
cp -Rpd build/RtspServer dep/RtspServer
fi
}
# previsouly part of installzm.sh