提交 992ebfab 编写于 作者: M Masahiro Yamada

setlocalversion: simplify the construction of the short version

With the --short option given, scm_version() prints "+".
Just append it.
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: NNicolas Schier <nicolas@fjasle.eu>
上级 f6e09b07
...@@ -121,8 +121,7 @@ elif [ "${LOCALVERSION+set}" != "set" ]; then ...@@ -121,8 +121,7 @@ elif [ "${LOCALVERSION+set}" != "set" ]; then
# #
# If the variable LOCALVERSION is set (including being set # If the variable LOCALVERSION is set (including being set
# to an empty string), we don't want to append a plus sign. # to an empty string), we don't want to append a plus sign.
scm=$(scm_version --short) res="$res$(scm_version --short)"
res="$res${scm:++}"
fi fi
echo "$res" echo "$res"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册