winlin

fix bug of package script, donot default os

@@ -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=NO 13 +X86_X64=NO
14 ARM=NO 14 ARM=NO
15 PI=NO 15 PI=NO
16 16
@@ -31,9 +31,9 @@ do @@ -31,9 +31,9 @@ do
31 case "$option" in 31 case "$option" in
32 --help) help=yes ;; 32 --help) help=yes ;;
33 33
34 - --x86-64) X86_64=YES ;; 34 + --x86-x64) X86_X64=YES ;;
35 --arm) ARM=YES ;; 35 --arm) ARM=YES ;;
36 - --pi) PI=NO ;; 36 + --pi) PI=YES ;;
37 37
38 *) 38 *)
39 echo "$0: error: invalid option \"$option\", @see $0 --help" 39 echo "$0: error: invalid option \"$option\", @see $0 --help"
@@ -46,7 +46,7 @@ if [ $help = yes ]; then @@ -46,7 +46,7 @@ if [ $help = yes ]; then
46 46
47 --help print this message 47 --help print this message
48 48
49 - --x86-64 for x86-64 platform, configure/make/package. 49 + --x86-x64 for x86-x64 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 END 52 END
@@ -98,7 +98,7 @@ elif [ $PI = YES ]; then @@ -98,7 +98,7 @@ elif [ $PI = YES ]; then
98 cd $work_dir && 98 cd $work_dir &&
99 ./configure --pi --prefix=$INSTALL && make 99 ./configure --pi --prefix=$INSTALL && make
100 ) >> $log 2>&1 100 ) >> $log 2>&1
101 -elif [ $X86_64 = YES ]; then 101 +elif [ $X86_X64 = YES ]; then
102 ( 102 (
103 cd $work_dir && 103 cd $work_dir &&
104 ./configure --x86-x64 --prefix=$INSTALL && make 104 ./configure --x86-x64 --prefix=$INSTALL && make