winlin

Merge branch '2.0release' into develop

@@ -361,6 +361,9 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then @@ -361,6 +361,9 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then
361 OSX_prepare; ret=$?; if [[ 0 -ne $ret ]]; then echo "OSX prepare failed, ret=$ret"; exit $ret; fi 361 OSX_prepare; ret=$?; if [[ 0 -ne $ret ]]; then echo "OSX prepare failed, ret=$ret"; exit $ret; fi
362 fi 362 fi
363 363
  364 +# the sed command
  365 +SED="sed -i" && if [ $OS_IS_OSX = YES ]; then SED="sed -i ''"; fi
  366 +
364 ##################################################################################### 367 #####################################################################################
365 # check the os. 368 # check the os.
366 ##################################################################################### 369 #####################################################################################
@@ -513,7 +516,7 @@ if [ $__SRS_BUILD_NGINX = YES ]; then @@ -513,7 +516,7 @@ if [ $__SRS_BUILD_NGINX = YES ]; then
513 # srs will write ts/m3u8 file use current user, 516 # srs will write ts/m3u8 file use current user,
514 # nginx default use nobody, so cannot read the ts/m3u8 created by srs. 517 # nginx default use nobody, so cannot read the ts/m3u8 created by srs.
515 cp ${SRS_OBJS}/nginx/conf/nginx.conf ${SRS_OBJS}/nginx/conf/nginx.conf.bk 518 cp ${SRS_OBJS}/nginx/conf/nginx.conf ${SRS_OBJS}/nginx/conf/nginx.conf.bk
516 - $SED '' "s/^.user nobody;/user `whoami`;/g" ${SRS_OBJS}/nginx/conf/nginx.conf 519 + $SED "s/^.user nobody;/user `whoami`;/g" ${SRS_OBJS}/nginx/conf/nginx.conf
517 fi 520 fi
518 521
519 # the demo dir. 522 # the demo dir.
@@ -7,10 +7,6 @@ ret=$?; if [[ 0 -eq $ret ]]; then @@ -7,10 +7,6 @@ ret=$?; if [[ 0 -eq $ret ]]; then
7 fi 7 fi
8 echo "Is OSX: ${OS_IS_OSX}" 8 echo "Is OSX: ${OS_IS_OSX}"
9 9
10 -# the sed command  
11 -SED="sed -i"  
12 -if [ $OS_IS_OSX = YES ]; then SED="sed -i ''"; fi  
13 -  
14 # when export srs-librtmp single files 10 # when export srs-librtmp single files
15 # package the whole project to srs_librtmp.h and srs_librtmp.cpp 11 # package the whole project to srs_librtmp.h and srs_librtmp.cpp
16 # 12 #