OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-dev message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [PATCH] make-setup-generated.sh: get version from spec string


Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 make-setup-generated.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/make-setup-generated.sh b/make-setup-generated.sh
index f15d148..2c5c7f8 100755
--- a/make-setup-generated.sh
+++ b/make-setup-generated.sh
@@ -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*)
-- 
MST



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]