setlocalversion (81361b837a3450f0a44255fddfd7a4c72502b667) | setlocalversion (5df99bec210a2cf89dd91e52f0d0a714bf4cd96a) |
---|---|
1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3# 4# This scripts adds local version information from the version 5# control systems git, mercurial (hg) and subversion (svn). 6# 7# If something goes wrong, send a mail the kernel build mailinglist 8# (see MAINTAINERS) and CC Nico Schottelius --- 117 unchanged lines hidden (view full) --- 126 127# CONFIG_LOCALVERSION and LOCALVERSION (if set) 128res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}" 129 130# scm version string if not at a tagged commit 131if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then 132 # full scm version string 133 res="$res$(scm_version)" | 1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3# 4# This scripts adds local version information from the version 5# control systems git, mercurial (hg) and subversion (svn). 6# 7# If something goes wrong, send a mail the kernel build mailinglist 8# (see MAINTAINERS) and CC Nico Schottelius --- 117 unchanged lines hidden (view full) --- 126 127# CONFIG_LOCALVERSION and LOCALVERSION (if set) 128res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}" 129 130# scm version string if not at a tagged commit 131if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then 132 # full scm version string 133 res="$res$(scm_version)" |
134elif [ -z "${LOCALVERSION}" ]; then 135 # append a plus sign if the repository is not in a clean 136 # annotated or signed tagged state (as git describe only 137 # looks at signed or annotated tags - git tag -a/-s) and 138 # LOCALVERSION= is not specified | 134elif [ "${LOCALVERSION+set}" != "set" ]; then 135 # If the variable LOCALVERSION is not set, append a plus 136 # sign if the repository is not in a clean annotated or 137 # signed tagged state (as git describe only looks at signed 138 # or annotated tags - git tag -a/-s). 139 # 140 # If the variable LOCALVERSION is set (including being set 141 # to an empty string), we don't want to append a plus sign. |
139 scm=$(scm_version --short) 140 res="$res${scm:++}" 141fi 142 143echo "$res" | 142 scm=$(scm_version --short) 143 res="$res${scm:++}" 144fi 145 146echo "$res" |