mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Reset version number
This commit is contained in:
parent
5bd7536db5
commit
69ee533b39
@ -13,9 +13,9 @@
|
|||||||
#include "build_number.h"
|
#include "build_number.h"
|
||||||
|
|
||||||
const int major_version = 1; // incompatible API changes
|
const int major_version = 1; // incompatible API changes
|
||||||
const int minor_version = 1; // new features that don't break things
|
const int minor_version = 0; // new features that don't break things
|
||||||
const int revision_number = 1; // bugfixes, revisions
|
const int revision_number = 0; // bugfixes, revisions
|
||||||
const QString ReleaseStatus = "testing"; // testing/nightly/unstable, beta/untamed, rc/almost, r/stable
|
const QString ReleaseStatus = "beta"; // testing/nightly/unstable, beta/untamed, rc/almost, r/stable
|
||||||
|
|
||||||
const QString VersionString = QString("%1.%2.%3-%4-%5").arg(major_version).arg(minor_version).arg(revision_number).arg(ReleaseStatus).arg(build_number);
|
const QString VersionString = QString("%1.%2.%3-%4-%5").arg(major_version).arg(minor_version).arg(revision_number).arg(ReleaseStatus).arg(build_number);
|
||||||
const QString ShortVersionString = QString("%1.%2.%3").arg(major_version).arg(minor_version).arg(revision_number);
|
const QString ShortVersionString = QString("%1.%2.%3").arg(major_version).arg(minor_version).arg(revision_number);
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
version=`cat ./sleepyhead/version.h | perl -ne 'my @array = /^const\s*int (major|minor|revision)_(version|number) = (\d+;).*/; print $array[2]' | perl -ne 'my @ar=split(";"); print join(".", @ar);'`
|
version=`cat ./oscr/version.h | perl -ne 'my @array = /^const\s*int (major|minor|revision)_(version|number) = (\d+;).*/; print $array[2]' | perl -ne 'my @ar=split(";"); print join(".", @ar);'`
|
||||||
buildno=`cat ./sleepyhead/scripts/build_number`
|
buildno=`cat ./oscr/scripts/build_number`
|
||||||
gitversion=`git rev-parse --short HEAD`
|
gitversion=`git rev-parse --short HEAD`
|
||||||
echo "SleepyHead Source Information"
|
echo "OSCR Source Information"
|
||||||
echo "Current Version: v${version}-${buildno} (git rev ${gitversion})"
|
echo "Current Version: v${version}-${buildno} (git rev ${gitversion})"
|
||||||
echo "Last commit: `git log -1 --format=%cd`"
|
echo "Last commit: `git log -1 --format=%cd`"
|
||||||
echo "Use 'git pull' to get up to date"
|
echo "Use 'git pull' to get up to date"
|
||||||
|
Loading…
Reference in New Issue
Block a user