diff --git a/trunk/auto/auto_headers.sh b/trunk/auto/auto_headers.sh index bfd650e7d..dcaba18eb 100755 --- a/trunk/auto/auto_headers.sh +++ b/trunk/auto/auto_headers.sh @@ -200,12 +200,16 @@ echo "" >> $SRS_AUTO_HEADERS_H ##################################################################################### # generated the contributors from AUTHORS.txt ##################################################################################### -SRS_CONSTRIBUTORS=`cat ../AUTHORS.txt|grep "*"|awk '{print $2}'` -echo "#define SRS_AUTO_CONSTRIBUTORS \"\\" >> $SRS_AUTO_HEADERS_H -for CONTRIBUTOR in $SRS_CONSTRIBUTORS; do - echo "${CONTRIBUTOR} \\" >> $SRS_AUTO_HEADERS_H -done -echo "\"" >> $SRS_AUTO_HEADERS_H +if [[ -f ../AUTHORS.txt ]]; then + SRS_CONSTRIBUTORS=`cat ../AUTHORS.txt|grep "*"|awk '{print $2}'` + echo "#define SRS_AUTO_CONSTRIBUTORS \"\\" >> $SRS_AUTO_HEADERS_H + for CONTRIBUTOR in $SRS_CONSTRIBUTORS; do + echo "${CONTRIBUTOR} \\" >> $SRS_AUTO_HEADERS_H + done + echo "\"" >> $SRS_AUTO_HEADERS_H +else + echo "#define SRS_AUTO_CONSTRIBUTORS \"ossrs\"" >> $SRS_AUTO_HEADERS_H +fi # new empty line to auto headers file. echo "" >> $SRS_AUTO_HEADERS_H diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 63e9f707d..96f395fbe 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -428,15 +428,15 @@ SED="sed_utility" && echo "SED is $SED" ##################################################################################### # check the os. ##################################################################################### -# user must specifies something what a fuck, we suppport following os: -# centos/ubuntu/osx, +# Only supports: +# linux, centos/ubuntu as such, # cross build for embeded system, for example, mips or arm, # directly build on arm/mips, for example, pi or cubie, # export srs-librtmp # others is invalid. if [[ $OS_IS_UBUNTU = NO && $OS_IS_CENTOS = NO && $OS_IS_OSX = NO && $SRS_EXPORT_LIBRTMP_PROJECT = NO ]]; then if [[ $SRS_PI = NO && $SRS_CUBIE = NO && $SRS_CROSS_BUILD = NO ]]; then - echo "What a fuck, your OS `uname -s` is not supported." + echo "Your OS `uname -s` is not supported." exit 1 fi fi diff --git a/trunk/src/app/srs_app_utility.cpp b/trunk/src/app/srs_app_utility.cpp index c3f5520bf..6ea2ba0f8 100644 --- a/trunk/src/app/srs_app_utility.cpp +++ b/trunk/src/app/srs_app_utility.cpp @@ -362,7 +362,6 @@ bool get_proc_system_stat(SrsProcSystemStat& r) fclose(f); #else // TODO: FIXME: impelments it. - // Fuck all of you who use osx for a long time and never patch the osx features for srs. #endif r.ok = true; @@ -401,7 +400,6 @@ bool get_proc_self_stat(SrsProcSelfStat& r) fclose(f); #else // TODO: FIXME: impelments it. - // Fuck all of you who use osx for a long time and never patch the osx features for srs. #endif r.ok = true; @@ -520,7 +518,6 @@ bool srs_get_disk_vmstat_stat(SrsDiskStat& r) fclose(f); #else // TODO: FIXME: impelments it. - // Fuck all of you who use osx for a long time and never patch the osx features for srs. #endif r.ok = true; @@ -606,7 +603,6 @@ bool srs_get_disk_diskstats_stat(SrsDiskStat& r) fclose(f); #else // TODO: FIXME: impelments it. - // Fuck all of you who use osx for a long time and never patch the osx features for srs. #endif r.ok = true; @@ -728,7 +724,6 @@ void srs_update_meminfo() fclose(f); #else // TODO: FIXME: impelments it. - // Fuck all of you who use osx for a long time and never patch the osx features for srs. #endif r.sample_time = srsu2ms(srs_get_system_time()); @@ -948,7 +943,6 @@ void srs_update_network_devices() } #else // TODO: FIXME: impelments it. - // Fuck all of you who use osx for a long time and never patch the osx features for srs. #endif } @@ -1029,7 +1023,6 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps) } #else // TODO: FIXME: impelments it. - // Fuck all of you who use osx for a long time and never patch the osx features for srs. nb_socks = 0; nb_tcp4_hashed = 0; nb_tcp_orphans = 0; @@ -1073,7 +1066,6 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps) } #else // TODO: FIXME: impelments it. - // Fuck all of you who use osx for a long time and never patch the osx features for srs. #endif // @see: https://github.com/shemminger/iproute2/blob/master/misc/ss.c