mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Refine comments.
This commit is contained in:
		
							parent
							
								
									ad1197e706
								
							
						
					
					
						commit
						a4160308f5
					
				
					 3 changed files with 13 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue