Skip to contentSkip to conversation

make-setup-generated.sh: get version from spec string

PATCH In review Michael S. Tsirkin 2 participants 2 messages Apr 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make-setup-generated.sh: get version from spec string

---
 make-setup-generated.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
make-setup-generated.sh +2 -1
index f15d148..2c5c7f8 100755
@@ -1,6 +1,5 @@
 #! /bin/sh
 
-VERSION=1.1
 DATESTR=${DATESTR:-`cat REVISION-DATE 2>/dev/null`}
 if [ x"$DATESTR" = x ]; then
     ISODATE=`git show --format=format:'%cd' --date=iso | head -n 1`
@@ -40,6 +39,8 @@ case "$1" in
 	exit 1
 esac
 
+VERSION=`echo "$1"| sed -e 's/virtio-v//' -e 's/-.*//'`
+
 #Prepend OASIS unless already there
 case "$STAGENAME" in
 	OASIS*)
Signature · 18 lines
MST


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/