1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +00:00

Build: Detect OS by packager. v5.0.39

This commit is contained in:
winlin 2022-08-10 23:10:31 +08:00
parent 0227e44ef0
commit 7f7406ec77
3 changed files with 8 additions and 16 deletions

View file

@ -33,16 +33,10 @@ echo "Required tools are ok."
OS_IS_UBUNTU=NO OS_IS_UBUNTU=NO
function Ubuntu_prepare() function Ubuntu_prepare()
{ {
uname -v|grep Ubuntu >/dev/null 2>&1 # For Debian, we think it's ubuntu also.
ret=$?; if [[ 0 -ne $ret ]]; then # For example, the wheezy/sid which is debian armv7 linux, can not identified by uname -v.
# for debian, we think it's ubuntu also. OS_IS_UBUNTU=$(apt-get --version >/dev/null 2>&1 && echo YES)
# for example, the wheezy/sid which is debian armv7 linux, can not identified by uname -v. if [[ $OS_IS_UBUNTU != YES ]]; then return 0; fi
if [[ ! -f /etc/debian_version ]]; then
return 0;
fi
fi
OS_IS_UBUNTU=YES
echo "Installing tools for Ubuntu." echo "Installing tools for Ubuntu."
gcc --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then gcc --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
@ -134,11 +128,8 @@ Ubuntu_prepare; ret=$?; if [[ 0 -ne $ret ]]; then echo "Install tools for ubuntu
OS_IS_CENTOS=NO OS_IS_CENTOS=NO
function Centos_prepare() function Centos_prepare()
{ {
if [[ ! -f /etc/redhat-release ]]; then OS_IS_CENTOS=$(yum --version >/dev/null 2>&1 && echo YES)
return 0; if [[ $OS_IS_CENTOS != YES ]]; then return 0; fi
fi
OS_IS_CENTOS=YES
echo "Installing tools for Centos." echo "Installing tools for Centos."
gcc --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then gcc --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then

View file

@ -6,6 +6,7 @@ The changelog for SRS.
## SRS 5.0 Changelog ## SRS 5.0 Changelog
* v5.0, 2022-08-10, Build: Detect OS by packager. v5.0.39
* v5.0, 2022-08-06, Support MIPS 64bits for loongson 3A4000/3B3000. v5.0.38 * v5.0, 2022-08-06, Support MIPS 64bits for loongson 3A4000/3B3000. v5.0.38
* v5.0, 2022-06-29, Support multiple threads by thread pool. v5.0.32 * v5.0, 2022-06-29, Support multiple threads by thread pool. v5.0.32
* v5.0, 2022-06-28, ST: Support thread-local for multiple threads. v5.0.31 * v5.0, 2022-06-28, ST: Support thread-local for multiple threads. v5.0.31

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 5 #define VERSION_MAJOR 5
#define VERSION_MINOR 0 #define VERSION_MINOR 0
#define VERSION_REVISION 38 #define VERSION_REVISION 39
#endif #endif