All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] prepare-kernel: Make robust against -rc release names
@ 2019-10-07 14:23 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2019-10-07 14:23 UTC (permalink / raw)
  To: Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 scripts/prepare-kernel.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/prepare-kernel.sh b/scripts/prepare-kernel.sh
index 8707b11983..7fb8ed3307 100755
--- a/scripts/prepare-kernel.sh
+++ b/scripts/prepare-kernel.sh
@@ -371,6 +371,9 @@ case $linux_VERSION.$linux_PATCHLEVEL in
 	version_major=`expr $version_stamp : '\([[0-9]]*\)' || true`
 	version_minor=`expr $version_stamp : '[[0-9]]*\.\([[0-9]*]*\)' || true`
 	revision_level=`expr $version_stamp : '[[0-9]]*\.[[0-9]*]*\.\([[0-9]*]*\)' || true`
+	if [ -z "$revision_level" ]; then
+	    revision_level=0
+	fi
 	version_string=`cat $xenomai_root/config/version-label`
 	sed -e "s,@VERSION_MAJOR@,$version_major,g" \
 	    -e "s,@VERSION_MINOR@,$version_minor,g" \
-- 
2.16.4


-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-07 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 14:23 [PATCH] prepare-kernel: Make robust against -rc release names Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.