diff --git a/trunk/doc/CHANGELOG.md b/trunk/doc/CHANGELOG.md index 1df41a738..e2816aa51 100644 --- a/trunk/doc/CHANGELOG.md +++ b/trunk/doc/CHANGELOG.md @@ -8,6 +8,7 @@ The changelog for SRS. ## SRS 5.0 Changelog +* v5.0, 2022-12-02, Package script support extra options. v5.0.102 * v5.0, 2022-12-02, Disable CLS and APM by default. v5.0.101 * v5.0, 2022-12-01, Config: Add utest for configuring with ENV variables. v5.0.100 * v5.0, 2022-12-01, Live: Fix bug for gop cache limits. v5.0.99 diff --git a/trunk/scripts/package.sh b/trunk/scripts/package.sh index 7e3c19ed9..436165cf8 100755 --- a/trunk/scripts/package.sh +++ b/trunk/scripts/package.sh @@ -19,6 +19,8 @@ EMBEDED=NO JOBS=1 # SRS_TAG= +# +OPTIONS= ################################################################################## ################################################################################## @@ -47,8 +49,8 @@ do --tag) SRS_TAG=$value ;; *) - echo "$0: error: invalid option \"$option\", @see $0 --help" - exit 1 + OPTIONS="${OPTIONS} ${option}=${value}" + echo "Apply option ${option}=${value}" ;; esac done @@ -125,22 +127,22 @@ ok_msg "start build srs, ARM: $ARM, MIPS: $MIPS, PI: $PI, X86_64: $X86_X64, JOBS if [ $ARM = YES ]; then ( cd $work_dir && - ./configure --arm --jobs=$JOBS --prefix=$INSTALL --build-tag=${os_name}${os_major_version} && make + ./configure --arm --jobs=$JOBS --prefix=$INSTALL --build-tag=${os_name}${os_major_version} ${OPTIONS} && make ) >> $log 2>&1 elif [ $MIPS = YES ]; then ( cd $work_dir && - ./configure --mips --jobs=$JOBS --prefix=$INSTALL --build-tag=${os_name}${os_major_version} && make + ./configure --mips --jobs=$JOBS --prefix=$INSTALL --build-tag=${os_name}${os_major_version} ${OPTIONS} && make ) >> $log 2>&1 elif [ $PI = YES ]; then ( cd $work_dir && - ./configure --pi --jobs=$JOBS --prefix=$INSTALL --build-tag=${os_name}${os_major_version} && make + ./configure --pi --jobs=$JOBS --prefix=$INSTALL --build-tag=${os_name}${os_major_version} ${OPTIONS} && make ) >> $log 2>&1 elif [ $X86_X64 = YES ]; then ( cd $work_dir && - ./configure --x86-x64 --jobs=$JOBS --prefix=$INSTALL --build-tag=${os_name}${os_major_version} && make + ./configure --x86-x64 --jobs=$JOBS --prefix=$INSTALL --build-tag=${os_name}${os_major_version} ${OPTIONS} && make ) >> $log 2>&1 else failed_msg "invalid option, must be --x86-x64/--arm/--mips/--pi, see --help"; exit 1; diff --git a/trunk/src/core/srs_core_version5.hpp b/trunk/src/core/srs_core_version5.hpp index dedb373a4..4d2a46694 100644 --- a/trunk/src/core/srs_core_version5.hpp +++ b/trunk/src/core/srs_core_version5.hpp @@ -9,6 +9,6 @@ #define VERSION_MAJOR 5 #define VERSION_MINOR 0 -#define VERSION_REVISION 101 +#define VERSION_REVISION 102 #endif