summaryrefslogtreecommitdiffstats
path: root/ci/build_qemu_rpm_deb/mkversion
diff options
context:
space:
mode:
Diffstat (limited to 'ci/build_qemu_rpm_deb/mkversion')
-rwxr-xr-xci/build_qemu_rpm_deb/mkversion10
1 files changed, 10 insertions, 0 deletions
diff --git a/ci/build_qemu_rpm_deb/mkversion b/ci/build_qemu_rpm_deb/mkversion
new file mode 100755
index 000000000..fa4e585b9
--- /dev/null
+++ b/ci/build_qemu_rpm_deb/mkversion
@@ -0,0 +1,10 @@
+if [ ! -f .version ]
+then
+ touch .version
+ sudo chmod 777 .version
+ echo 1 > .version
+ echo 1
+else
+ expr 0`cat .version` + 1
+ expr 0`cat .version` + 1 > .version
+fi