mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
fix bug of package script, donot default os
This commit is contained in:
parent
e85a46f88e
commit
60f319de0c
1 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ echo "通用打包脚本,--help查看参数"
|
||||||
INSTALL=/usr/local/srs
|
INSTALL=/usr/local/srs
|
||||||
# whether build for arm, only for ubuntu12.
|
# whether build for arm, only for ubuntu12.
|
||||||
help=NO
|
help=NO
|
||||||
X86_64=NO
|
X86_X64=NO
|
||||||
ARM=NO
|
ARM=NO
|
||||||
PI=NO
|
PI=NO
|
||||||
|
|
||||||
|
@ -31,9 +31,9 @@ do
|
||||||
case "$option" in
|
case "$option" in
|
||||||
--help) help=yes ;;
|
--help) help=yes ;;
|
||||||
|
|
||||||
--x86-64) X86_64=YES ;;
|
--x86-x64) X86_X64=YES ;;
|
||||||
--arm) ARM=YES ;;
|
--arm) ARM=YES ;;
|
||||||
--pi) PI=NO ;;
|
--pi) PI=YES ;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "$0: error: invalid option \"$option\", @see $0 --help"
|
echo "$0: error: invalid option \"$option\", @see $0 --help"
|
||||||
|
@ -46,7 +46,7 @@ if [ $help = yes ]; then
|
||||||
|
|
||||||
--help print this message
|
--help print this message
|
||||||
|
|
||||||
--x86-64 for x86-64 platform, configure/make/package.
|
--x86-x64 for x86-x64 platform, configure/make/package.
|
||||||
--arm for arm cross-build platform, configure/make/package.
|
--arm for arm cross-build platform, configure/make/package.
|
||||||
--pi for pi platform, configure/make/package.
|
--pi for pi platform, configure/make/package.
|
||||||
END
|
END
|
||||||
|
@ -98,7 +98,7 @@ elif [ $PI = YES ]; then
|
||||||
cd $work_dir &&
|
cd $work_dir &&
|
||||||
./configure --pi --prefix=$INSTALL && make
|
./configure --pi --prefix=$INSTALL && make
|
||||||
) >> $log 2>&1
|
) >> $log 2>&1
|
||||||
elif [ $X86_64 = YES ]; then
|
elif [ $X86_X64 = YES ]; then
|
||||||
(
|
(
|
||||||
cd $work_dir &&
|
cd $work_dir &&
|
||||||
./configure --x86-x64 --prefix=$INSTALL && make
|
./configure --x86-x64 --prefix=$INSTALL && make
|
||||||
|
|
Loading…
Reference in a new issue