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:
parent
0227e44ef0
commit
7f7406ec77
3 changed files with 8 additions and 16 deletions
|
@ -33,16 +33,10 @@ echo "Required tools are ok."
|
|||
OS_IS_UBUNTU=NO
|
||||
function Ubuntu_prepare()
|
||||
{
|
||||
uname -v|grep Ubuntu >/dev/null 2>&1
|
||||
ret=$?; if [[ 0 -ne $ret ]]; then
|
||||
# for debian, we think it's ubuntu also.
|
||||
# for example, the wheezy/sid which is debian armv7 linux, can not identified by uname -v.
|
||||
if [[ ! -f /etc/debian_version ]]; then
|
||||
return 0;
|
||||
fi
|
||||
fi
|
||||
|
||||
OS_IS_UBUNTU=YES
|
||||
# For Debian, we think it's ubuntu also.
|
||||
# For example, the wheezy/sid which is debian armv7 linux, can not identified by uname -v.
|
||||
OS_IS_UBUNTU=$(apt-get --version >/dev/null 2>&1 && echo YES)
|
||||
if [[ $OS_IS_UBUNTU != YES ]]; then return 0; fi
|
||||
echo "Installing tools for Ubuntu."
|
||||
|
||||
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
|
||||
function Centos_prepare()
|
||||
{
|
||||
if [[ ! -f /etc/redhat-release ]]; then
|
||||
return 0;
|
||||
fi
|
||||
|
||||
OS_IS_CENTOS=YES
|
||||
OS_IS_CENTOS=$(yum --version >/dev/null 2>&1 && echo YES)
|
||||
if [[ $OS_IS_CENTOS != YES ]]; then return 0; fi
|
||||
echo "Installing tools for Centos."
|
||||
|
||||
gcc --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then
|
||||
|
|
|
@ -6,6 +6,7 @@ The changelog for SRS.
|
|||
|
||||
## 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-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
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 38
|
||||
#define VERSION_REVISION 39
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue