Skip to content

Commit

Permalink
Build: Detect OS by packager. v5.0.39
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 10, 2022
1 parent 0227e44 commit 7f7406e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
21 changes: 6 additions & 15 deletions trunk/auto/depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions trunk/doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/core/srs_core_version5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

#define VERSION_MAJOR 5
#define VERSION_MINOR 0
#define VERSION_REVISION 38
#define VERSION_REVISION 39

#endif

0 comments on commit 7f7406e

Please sign in to comment.