fix bug of package script, donot default os

pull/133/head
winlin 11 years ago
parent 6e8c0b9674
commit e85a46f88e

@ -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=YES X86_64=NO
ARM=NO ARM=NO
PI=NO PI=NO
@ -36,7 +36,7 @@ do
--pi) PI=NO ;; --pi) PI=NO ;;
*) *)
echo "$0: error: invalid option \"$option\"" echo "$0: error: invalid option \"$option\", @see $0 --help"
exit 1 exit 1
;; ;;
esac esac
@ -49,9 +49,6 @@ if [ $help = yes ]; then
--x86-64 for x86-64 platform, configure/make/package. --x86-64 for x86-64 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.
default:
--x86-64
END END
exit 0 exit 0
fi fi
@ -107,7 +104,7 @@ elif [ $X86_64 = YES ]; then
./configure --x86-x64 --prefix=$INSTALL && make ./configure --x86-x64 --prefix=$INSTALL && make
) >> $log 2>&1 ) >> $log 2>&1
else else
failed_msg "invalid option, must be x86-x64/arm/pi, see --help"; exit 1; failed_msg "invalid option, must be --x86-x64/--arm/--pi, see --help"; exit 1;
fi fi
ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "build srs failed"; exit $ret; fi ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "build srs failed"; exit $ret; fi
ok_msg "build srs success" ok_msg "build srs success"

Loading…
Cancel
Save