Merge tag 'v0.3' into develop

v0.3
pull/11/head
Geoffrey Merck 4 years ago
commit 4e0efb6271

@ -153,7 +153,7 @@ bool CDStarGatewayConfig::loadPaths(const CConfig & cfg)
bool CDStarGatewayConfig::loadRepeaters(const CConfig & cfg) bool CDStarGatewayConfig::loadRepeaters(const CConfig & cfg)
{ {
for(unsigned int i = 0; i < 4; i++) { for(unsigned int i = 0; i < 4; i++) {
std::string section = ((std::stringstream() << "repeater_" << (i + 1))).str(); std::string section = CStringUtils::string_format("repeater_%d", i+ 1);
bool repeaterEnabled; bool repeaterEnabled;
bool ret = cfg.getValue(section, "enabled", repeaterEnabled, false); bool ret = cfg.getValue(section, "enabled", repeaterEnabled, false);
@ -226,7 +226,7 @@ bool CDStarGatewayConfig::loadIrcDDB(const CConfig & cfg)
{ {
bool ret = true; bool ret = true;
for(unsigned int i = 0; i < 4; i++) { for(unsigned int i = 0; i < 4; i++) {
std::string section = ((std::stringstream() << "ircddb_" << (i + 1))).str(); std::string section = CStringUtils::string_format("ircddb_%d", i + 1);
bool ircEnabled; bool ircEnabled;
ret = cfg.getValue(section, "enabled", ircEnabled, false) && ret; ret = cfg.getValue(section, "enabled", ircEnabled, false) && ret;

@ -4,7 +4,7 @@
- [2.2. Code Credit](#22-code-credit) - [2.2. Code Credit](#22-code-credit)
- [2.3. Features](#23-features) - [2.3. Features](#23-features)
- [3. Building and installing](#3-building-and-installing) - [3. Building and installing](#3-building-and-installing)
- [3.1. Get latest stable code](#31-get-latest-stable-code) - [3.1. Get latest stable version](#31-get-latest-stable-version)
- [3.2. Prerequisites and dependencies](#32-prerequisites-and-dependencies) - [3.2. Prerequisites and dependencies](#32-prerequisites-and-dependencies)
- [3.3. Building](#33-building) - [3.3. Building](#33-building)
- [3.4. Installing](#34-installing) - [3.4. Installing](#34-installing)
@ -42,9 +42,15 @@ Features that where left out :
- Mobile APRS: Code has been ported, yet I am targeting repeaters so low priority. - Mobile APRS: Code has been ported, yet I am targeting repeaters so low priority.
# 3. Building and installing # 3. Building and installing
## 3.1. Get latest stable code ## 3.1. Get latest stable version
From inside the already cloned repository run following commands Clone the repository (only required initally)
``` ```
git clone https://github.com/F4FXL/DStarGateway.git
cd DStarGateway
```
From inside the cloned repository run following commands to get the latest stable version
```
git pull -p
git fetch --tags git fetch --tags
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag git checkout $latestTag

Loading…
Cancel
Save

Powered by TurnKey Linux.