Skip to content

Commit 3192c6c

Browse files
committed
Add release information to Anduin
1 parent 1db226e commit 3192c6c

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
*.idea
22
*.sublime-workspace
33
*.walrus
4+
.DS_Store
45
**/git_info.go.bak
56
\#*
67
*~
78
.#*
89
\#*\#
910
/bin
1011
/pkg
12+
/dist
1113

1214
service/sg-windows/sg-windows
1315
service/sg-windows/sg-accel-service

release.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
RELEASE=1.3.1-anduin
4+
dist=dist
5+
bin=sync_gateway
6+
7+
function build {
8+
GOOS=$1 GOARCH=$2 go build -o $bin
9+
package=$bin-$RELEASE-$1-$2.tar.gz
10+
tar cvzf $package $bin
11+
mv $package $dist
12+
rm $bin
13+
}
14+
15+
mkdir -p $dist
16+
build linux amd64

rest/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (h *handler) handleRoot() error {
6666
response := map[string]interface{}{
6767
"couchdb": "Welcome",
6868
"version": LongVersionString,
69-
"vendor": db.Body{"name": ServerName, "version": VersionNumber},
69+
"vendor": db.Body{"name": ServerName, "version": fmt.Sprint(VersionNumber) + "-anduin"},
7070
}
7171
if h.privs == adminPrivs {
7272
response["ADMIN"] = true

0 commit comments

Comments
 (0)