History

scripts/setlocalversion: simplify the short version part

Reduce the indentation.

Masahiro Yamada committed 5 years ago

Commit 042da421 parent 630ff0f1 file · +3 −5Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/setlocalversion+3−5
@@ -131,15 +131,13 @@ res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}" · 130 unmodified lines
131if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then131if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then
132 # full scm version string132 # full scm version string
133 res="$res$(scm_version)"133 res="$res$(scm_version)"
134else134elif [ -z "${LOCALVERSION}" ]; then
135 # append a plus sign if the repository is not in a clean135 # append a plus sign if the repository is not in a clean
136 # annotated or signed tagged state (as git describe only136 # annotated or signed tagged state (as git describe only
137 # looks at signed or annotated tags - git tag -a/-s) and137 # looks at signed or annotated tags - git tag -a/-s) and
138 # LOCALVERSION= is not specified138 # LOCALVERSION= is not specified
139 if test "${LOCALVERSION+set}" != "set"; then139 scm=$(scm_version --short)
140 scm=$(scm_version --short)140 res="$res${scm:++}"
141 res="$res${scm:++}"
142 fi
143fi141fi
144 142
145echo "$res"143echo "$res"