first pass at renaming Oragono to Ergo

This commit is contained in:
Shivaram Lingamneni 2021-05-25 00:34:38 -04:00
parent 7a1695c628
commit 23c7218bf1
63 changed files with 253 additions and 262 deletions

View file

@ -6,13 +6,13 @@ package irc
import "fmt"
const (
// SemVer is the semantic version of Oragono.
// SemVer is the semantic version of Ergo.
SemVer = "2.7.0-unreleased"
)
var (
// Ver is the full version of Oragono, used in responses to clients.
Ver = fmt.Sprintf("oragono-%s", SemVer)
// Ver is the full version of Ergo, used in responses to clients.
Ver = fmt.Sprintf("ergo-%s", SemVer)
// Commit is the full git hash, if available
Commit string
)
@ -21,8 +21,8 @@ var (
func SetVersionString(version, commit string) {
Commit = commit
if version != "" {
Ver = fmt.Sprintf("oragono-%s", version)
Ver = fmt.Sprintf("ergo-%s", version)
} else if len(Commit) == 40 {
Ver = fmt.Sprintf("oragono-%s-%s", SemVer, Commit[:16])
Ver = fmt.Sprintf("ergo-%s-%s", SemVer, Commit[:16])
}
}