mirror of
https://github.com/akuker/RASCSI.git
synced 2024-10-31 13:07:50 +00:00
39 lines
924 B
C++
39 lines
924 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator PiSCSI
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2020 akuker
|
|
// [ Define the version string ]
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#include "piscsi_version.h"
|
|
#include <sstream>
|
|
#include <iomanip>
|
|
|
|
// The following should be updated for each release
|
|
const int piscsi_major_version = 23; // Last two digits of year
|
|
const int piscsi_minor_version = 3; // Month
|
|
const int piscsi_patch_version = -1; // Patch number - increment for each update
|
|
|
|
using namespace std;
|
|
|
|
string piscsi_get_version_string()
|
|
{
|
|
stringstream s;
|
|
|
|
s << setw(2) << setfill('0') << piscsi_major_version << '.' << setw(2) << piscsi_minor_version;
|
|
|
|
if (piscsi_patch_version < 0) {
|
|
s << " --DEVELOPMENT BUILD--";
|
|
}
|
|
else {
|
|
s << '.' << setw(2) << piscsi_patch_version;
|
|
}
|
|
|
|
return s.str();
|
|
}
|
|
|
|
|