Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-10-09 14:06:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
024611cc082b542ed918057d84b621a1b3c56b2a
024611cc
1 parent
1d939f55
update package for pi, check the lsb_release.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
16 行增加
和
4 行删除
trunk/scripts/package.sh
trunk/scripts/package.sh
查看文件 @
024611c
...
...
@@ -79,6 +79,15 @@ package_dir=${build_objs}/package
log
=
"
${
build_objs
}
/logs/package.
`
date +%s
`
.log"
&&
.
${
product_dir
}
/scripts/_log.sh
&&
check_log
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
exit
$ret
;
fi
# check lsb_release
lsb_release -a >/dev/null 2>&1
ret
=
$?
;
if
[[
$ret
-ne 0
]]
;
then
failed_msg
"lsb_release not found. to install on centos/debian(ubuntu/respberry-pi):"
;
failed_msg
" sudo yum install -y lsb-release"
;
failed_msg
" sudo aptitude install -y lsb-release"
;
exit
$ret
;
fi
# check os version
os_name
=
`
lsb_release --id|awk
'{print $3}'
`
&&
os_release
=
`
lsb_release --release|awk
'{print $2}'
`
&&
...
...
@@ -89,10 +98,13 @@ ok_msg "target os is ${os_name}-${os_major_version} ${os_release} ${os_machine}"
# for raspberry-pi
# use rasberry-pi instead all release
uname -a|grep
"raspberrypi"
;
if
[[
0 -eq
$?
]]
;
then
os_name
=
"RaspberryPi"
;
fi
if
[[
"Raspbian"
==
$os_name
]]
;
then
os_name
=
"RaspberryPi"
;
fi
# check the cpu machine
if
[[
"unknown"
==
$os_machine
]]
;
then
os_machine
=
`
uname -m
`
;
fi
if
[
$PI
=
YES
]
;
then
uname -a|grep
"raspberrypi"
;
if
[[
0 -eq
$?
]]
;
then
os_name
=
"RaspberryPi"
;
fi
if
[[
"Raspbian"
==
$os_name
]]
;
then
os_name
=
"RaspberryPi"
;
fi
# check the cpu machine
if
[[
"unknown"
==
$os_machine
]]
;
then
os_machine
=
`
uname -m
`
;
fi
fi
ok_msg
"real os is
${
os_name
}
-
${
os_major_version
}
${
os_release
}
${
os_machine
}
"
# build srs
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/Build
...
...
请
注册
或
登录
后发表评论