mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine script for generate script
This commit is contained in:
parent
805ff7b1be
commit
cc811dfc90
1 changed files with 14 additions and 12 deletions
|
@ -444,18 +444,20 @@ else
|
||||||
echo "#undef SRS_AUTO_HTTP_CALLBACK" >> $SRS_AUTO_HEADERS_H
|
echo "#undef SRS_AUTO_HTTP_CALLBACK" >> $SRS_AUTO_HEADERS_H
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "link players to cherrypy static-dir"
|
if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then
|
||||||
rm -rf research/api-server/static-dir/players &&
|
echo "link players to cherrypy static-dir"
|
||||||
ln -sf `pwd`/research/players research/api-server/static-dir/players &&
|
rm -rf research/api-server/static-dir/players &&
|
||||||
rm -f research/api-server/static-dir/crossdomain.xml &&
|
ln -sf `pwd`/research/players research/api-server/static-dir/players &&
|
||||||
ln -sf `pwd`/research/players/crossdomain.xml research/api-server/static-dir/crossdomain.xml &&
|
rm -f research/api-server/static-dir/crossdomain.xml &&
|
||||||
rm -rf research/api-server/static-dir/live &&
|
ln -sf `pwd`/research/players/crossdomain.xml research/api-server/static-dir/crossdomain.xml &&
|
||||||
mkdir -p `pwd`/${SRS_OBJS}/nginx/html/live &&
|
rm -rf research/api-server/static-dir/live &&
|
||||||
ln -sf `pwd`/${SRS_OBJS}/nginx/html/live research/api-server/static-dir/live &&
|
mkdir -p `pwd`/${SRS_OBJS}/nginx/html/live &&
|
||||||
rm -rf research/api-server/static-dir/forward &&
|
ln -sf `pwd`/${SRS_OBJS}/nginx/html/live research/api-server/static-dir/live &&
|
||||||
mkdir -p `pwd`/${SRS_OBJS}/nginx/html/forward &&
|
rm -rf research/api-server/static-dir/forward &&
|
||||||
ln -sf `pwd`/${SRS_OBJS}/nginx/html/forward research/api-server/static-dir/forward
|
mkdir -p `pwd`/${SRS_OBJS}/nginx/html/forward &&
|
||||||
ret=$?; if [[ $ret -ne 0 ]]; then echo "link players to cherrypy static-dir failed, ret=$ret"; exit $ret; fi
|
ln -sf `pwd`/${SRS_OBJS}/nginx/html/forward research/api-server/static-dir/forward
|
||||||
|
ret=$?; if [[ $ret -ne 0 ]]; then echo "link players to cherrypy static-dir failed, ret=$ret"; exit $ret; fi
|
||||||
|
fi
|
||||||
|
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
# generate demo index.html
|
# generate demo index.html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue