OPNFV KVM4NFV CICD: Scripts for creating Rpms & Debians for Kernel, Qemu
[kvmfornfv.git] / ci / build_rpm / mkversion
diff --git a/ci/build_rpm/mkversion b/ci/build_rpm/mkversion
new file mode 100755 (executable)
index 0000000..9668da7
--- /dev/null
@@ -0,0 +1,10 @@
+if [ ! -f .version ]
+then
+    touch .version
+    chmod 777 .version
+    echo 1 > .version
+    echo 1
+else
+    expr 0`cat .version` + 1
+    expr 0`cat .version` + 1 > .version
+fi