summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-05-04 00:10:12 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-05-04 00:17:50 +0200
commit20ec2412ff48c567c1e58d17f3c9afb2705f11fe (patch)
tree0f49749437d959a6e15dc19ad20b4ec875394a3e
parentfe33806da6bd1eaa2230c4654843e3ac72a32ec8 (diff)
downloadptxdist-20ec2412ff48c567c1e58d17f3c9afb2705f11fe.tar.gz
ptxdist-20ec2412ff48c567c1e58d17f3c9afb2705f11fe.tar.xz
[ptxdist_version] fix PTXDIST_VERSION_SCM calculation
"PTXDIST_VERSION_SCM" is calculated wrong. It contains the bugfig number of the release (the "0" of "ptxdist-2010.05.0). Luckily no show stopper, but the ptxdist release wouldn't refuse to build not released BSP version. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--scripts/ptxdist_version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ptxdist_version.sh b/scripts/ptxdist_version.sh
index 543f61820..78736d0ee 100644
--- a/scripts/ptxdist_version.sh
+++ b/scripts/ptxdist_version.sh
@@ -15,7 +15,7 @@ _ptxd_get_version()
PTXDIST_VERSION_YEAR="${1}"
PTXDIST_VERSION_MONTH="${2}"
PTXDIST_VERSION_BUGFIX="${3%%-*}"
- PTXDIST_VERSION_SCM="${3#*-}"
+ PTXDIST_VERSION_SCM="${3#${PTXDIST_VERSION_BUGFIX}}"
if [ -n "${PTXDIST_VERSION_SCM}" ]; then
PTXDIST_VERSION_PTXRC="git"