|
|
|
@ -17,8 +17,6 @@ MIPS=NO
|
|
|
|
|
#
|
|
|
|
|
EMBEDED=NO
|
|
|
|
|
JOBS=1
|
|
|
|
|
#
|
|
|
|
|
SRS_CONSOLE=
|
|
|
|
|
|
|
|
|
|
##################################################################################
|
|
|
|
|
##################################################################################
|
|
|
|
@ -43,7 +41,6 @@ do
|
|
|
|
|
--arm) ARM=YES ;;
|
|
|
|
|
--pi) PI=YES ;;
|
|
|
|
|
--jobs) JOBS=$value ;;
|
|
|
|
|
--console) SRS_CONSOLE=$value ;;
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
echo "$0: error: invalid option \"$option\", @see $0 --help"
|
|
|
|
@ -157,14 +154,16 @@ ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "install srs failed"; exit $ret;
|
|
|
|
|
ok_msg "install srs success"
|
|
|
|
|
|
|
|
|
|
# Copy srs-console
|
|
|
|
|
if [[ $SRS_CONSOLE != "" ]]; then
|
|
|
|
|
HTTP_HOME="objs/nginx/html/"
|
|
|
|
|
CONSOLE_HOME="trunk/research/console"
|
|
|
|
|
cp -R $SRS_CONSOLE/index.html ${package_dir}/${INSTALL}/${HTTP_HOME} >> $log 2>&1
|
|
|
|
|
cp -R $SRS_CONSOLE/${CONSOLE_HOME} ${package_dir}/${INSTALL}/${HTTP_HOME} >> $log 2>&1
|
|
|
|
|
ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "copy console files failed"; exit $ret; fi
|
|
|
|
|
ok_msg "copy console files success"
|
|
|
|
|
fi
|
|
|
|
|
HTTP_HOME="${package_dir}/${INSTALL}/objs/nginx/html/"
|
|
|
|
|
(
|
|
|
|
|
cp $work_dir/research/api-server/static-dir/index.html ${HTTP_HOME} &&
|
|
|
|
|
cp $work_dir/research/api-server/static-dir/favicon.ico ${HTTP_HOME} &&
|
|
|
|
|
cp $work_dir/research/api-server/static-dir/crossdomain.xml ${HTTP_HOME} &&
|
|
|
|
|
cp -R $work_dir/research/players ${HTTP_HOME} &&
|
|
|
|
|
cp -R $work_dir/research/console ${HTTP_HOME}
|
|
|
|
|
) >> $log 2>&1
|
|
|
|
|
ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "copy utilities failed"; exit $ret; fi
|
|
|
|
|
ok_msg "copy utilities success"
|
|
|
|
|
|
|
|
|
|
# copy extra files to package.
|
|
|
|
|
ok_msg "start copy extra files to package"
|
|
|
|
|