正在显示
1 个修改的文件
包含
3 行增加
和
6 行删除
@@ -10,7 +10,7 @@ echo "通用打包脚本,--help查看参数" | @@ -10,7 +10,7 @@ echo "通用打包脚本,--help查看参数" | ||
10 | INSTALL=/usr/local/srs | 10 | INSTALL=/usr/local/srs |
11 | # whether build for arm, only for ubuntu12. | 11 | # whether build for arm, only for ubuntu12. |
12 | help=NO | 12 | help=NO |
13 | -X86_64=YES | 13 | +X86_64=NO |
14 | ARM=NO | 14 | ARM=NO |
15 | PI=NO | 15 | PI=NO |
16 | 16 | ||
@@ -36,7 +36,7 @@ do | @@ -36,7 +36,7 @@ do | ||
36 | --pi) PI=NO ;; | 36 | --pi) PI=NO ;; |
37 | 37 | ||
38 | *) | 38 | *) |
39 | - echo "$0: error: invalid option \"$option\"" | 39 | + echo "$0: error: invalid option \"$option\", @see $0 --help" |
40 | exit 1 | 40 | exit 1 |
41 | ;; | 41 | ;; |
42 | esac | 42 | esac |
@@ -49,9 +49,6 @@ if [ $help = yes ]; then | @@ -49,9 +49,6 @@ if [ $help = yes ]; then | ||
49 | --x86-64 for x86-64 platform, configure/make/package. | 49 | --x86-64 for x86-64 platform, configure/make/package. |
50 | --arm for arm cross-build platform, configure/make/package. | 50 | --arm for arm cross-build platform, configure/make/package. |
51 | --pi for pi platform, configure/make/package. | 51 | --pi for pi platform, configure/make/package. |
52 | - | ||
53 | -default: | ||
54 | - --x86-64 | ||
55 | END | 52 | END |
56 | exit 0 | 53 | exit 0 |
57 | fi | 54 | fi |
@@ -107,7 +104,7 @@ elif [ $X86_64 = YES ]; then | @@ -107,7 +104,7 @@ elif [ $X86_64 = YES ]; then | ||
107 | ./configure --x86-x64 --prefix=$INSTALL && make | 104 | ./configure --x86-x64 --prefix=$INSTALL && make |
108 | ) >> $log 2>&1 | 105 | ) >> $log 2>&1 |
109 | else | 106 | else |
110 | - failed_msg "invalid option, must be x86-x64/arm/pi, see --help"; exit 1; | 107 | + failed_msg "invalid option, must be --x86-x64/--arm/--pi, see --help"; exit 1; |
111 | fi | 108 | fi |
112 | ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "build srs failed"; exit $ret; fi | 109 | ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "build srs failed"; exit $ret; fi |
113 | ok_msg "build srs success" | 110 | ok_msg "build srs success" |
-
请 注册 或 登录 后发表评论