winlin

check what a fuck os for some fresh.

@@ -369,6 +369,19 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then @@ -369,6 +369,19 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then
369 fi 369 fi
370 370
371 ##################################################################################### 371 #####################################################################################
  372 +# check the os.
  373 +#####################################################################################
  374 +# user must specifies something what a fuck, we suppport following os:
  375 +# centos/ubuntu/osx,
  376 +# embeded system, for example, mips or arm,
  377 +# export srs-librtmp
  378 +# others is invalid.
  379 +if [[ $OS_IS_UBUNTU = NO && $OS_IS_CENTOS = NO && $OS_IS_OSX = NO && $SRS_EMBEDED_CPU = NO && $SRS_EXPORT_LIBRTMP_PROJECT = NO ]]; then
  380 + echo "what a fuck, os not supported."
  381 + exit 1
  382 +fi
  383 +
  384 +#####################################################################################
372 # st-1.9 385 # st-1.9
373 ##################################################################################### 386 #####################################################################################
374 if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then 387 if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then