mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +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
|
# generated the contributors from AUTHORS.txt
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
SRS_CONSTRIBUTORS=`cat ../AUTHORS.txt|grep "*"|awk '{print $2}'`
|
if [[ -f ../AUTHORS.txt ]]; then
|
||||||
echo "#define SRS_AUTO_CONSTRIBUTORS \"\\" >> $SRS_AUTO_HEADERS_H
|
SRS_CONSTRIBUTORS=`cat ../AUTHORS.txt|grep "*"|awk '{print $2}'`
|
||||||
for CONTRIBUTOR in $SRS_CONSTRIBUTORS; do
|
echo "#define SRS_AUTO_CONSTRIBUTORS \"\\" >> $SRS_AUTO_HEADERS_H
|
||||||
echo "${CONTRIBUTOR} \\" >> $SRS_AUTO_HEADERS_H
|
for CONTRIBUTOR in $SRS_CONSTRIBUTORS; do
|
||||||
done
|
echo "${CONTRIBUTOR} \\" >> $SRS_AUTO_HEADERS_H
|
||||||
echo "\"" >> $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.
|
# new empty line to auto headers file.
|
||||||
echo "" >> $SRS_AUTO_HEADERS_H
|
echo "" >> $SRS_AUTO_HEADERS_H
|
||||||
|
|
|
@ -428,15 +428,15 @@ SED="sed_utility" && echo "SED is $SED"
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
# check the os.
|
# check the os.
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
# user must specifies something what a fuck, we suppport following os:
|
# Only supports:
|
||||||
# centos/ubuntu/osx,
|
# linux, centos/ubuntu as such,
|
||||||
# cross build for embeded system, for example, mips or arm,
|
# cross build for embeded system, for example, mips or arm,
|
||||||
# directly build on arm/mips, for example, pi or cubie,
|
# directly build on arm/mips, for example, pi or cubie,
|
||||||
# export srs-librtmp
|
# export srs-librtmp
|
||||||
# others is invalid.
|
# others is invalid.
|
||||||
if [[ $OS_IS_UBUNTU = NO && $OS_IS_CENTOS = NO && $OS_IS_OSX = NO && $SRS_EXPORT_LIBRTMP_PROJECT = NO ]]; then
|
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
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -362,7 +362,6 @@ bool get_proc_system_stat(SrsProcSystemStat& r)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
#else
|
#else
|
||||||
// TODO: FIXME: impelments it.
|
// TODO: FIXME: impelments it.
|
||||||
// Fuck all of you who use osx for a long time and never patch the osx features for srs.
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
r.ok = true;
|
r.ok = true;
|
||||||
|
@ -401,7 +400,6 @@ bool get_proc_self_stat(SrsProcSelfStat& r)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
#else
|
#else
|
||||||
// TODO: FIXME: impelments it.
|
// TODO: FIXME: impelments it.
|
||||||
// Fuck all of you who use osx for a long time and never patch the osx features for srs.
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
r.ok = true;
|
r.ok = true;
|
||||||
|
@ -520,7 +518,6 @@ bool srs_get_disk_vmstat_stat(SrsDiskStat& r)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
#else
|
#else
|
||||||
// TODO: FIXME: impelments it.
|
// TODO: FIXME: impelments it.
|
||||||
// Fuck all of you who use osx for a long time and never patch the osx features for srs.
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
r.ok = true;
|
r.ok = true;
|
||||||
|
@ -606,7 +603,6 @@ bool srs_get_disk_diskstats_stat(SrsDiskStat& r)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
#else
|
#else
|
||||||
// TODO: FIXME: impelments it.
|
// TODO: FIXME: impelments it.
|
||||||
// Fuck all of you who use osx for a long time and never patch the osx features for srs.
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
r.ok = true;
|
r.ok = true;
|
||||||
|
@ -728,7 +724,6 @@ void srs_update_meminfo()
|
||||||
fclose(f);
|
fclose(f);
|
||||||
#else
|
#else
|
||||||
// TODO: FIXME: impelments it.
|
// TODO: FIXME: impelments it.
|
||||||
// Fuck all of you who use osx for a long time and never patch the osx features for srs.
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
r.sample_time = srsu2ms(srs_get_system_time());
|
r.sample_time = srsu2ms(srs_get_system_time());
|
||||||
|
@ -948,7 +943,6 @@ void srs_update_network_devices()
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// TODO: FIXME: impelments it.
|
// TODO: FIXME: impelments it.
|
||||||
// Fuck all of you who use osx for a long time and never patch the osx features for srs.
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1029,7 +1023,6 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// TODO: FIXME: impelments it.
|
// 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_socks = 0;
|
||||||
nb_tcp4_hashed = 0;
|
nb_tcp4_hashed = 0;
|
||||||
nb_tcp_orphans = 0;
|
nb_tcp_orphans = 0;
|
||||||
|
@ -1073,7 +1066,6 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// TODO: FIXME: impelments it.
|
// TODO: FIXME: impelments it.
|
||||||
// Fuck all of you who use osx for a long time and never patch the osx features for srs.
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// @see: https://github.com/shemminger/iproute2/blob/master/misc/ss.c
|
// @see: https://github.com/shemminger/iproute2/blob/master/misc/ss.c
|
||||||
|
|
Loading…
Reference in a new issue