@@ -32,7 +32,7 @@ set -o xtrace
32
32
type strip
33
33
type shasum
34
34
35
- # ratel_release="github.com/dgraph-io/ratel/server.ratelVersion"
35
+ ratel_release=" github.com/dgraph-io/ratel/server.ratelVersion"
36
36
release=" github.com/dgraph-io/dgraph/x.dgraphVersion"
37
37
branch=" github.com/dgraph-io/dgraph/x.gitBranch"
38
38
commitSHA1=" github.com/dgraph-io/dgraph/x.lastCommitSHA"
@@ -70,16 +70,16 @@ pushd $basedir/dgraph
70
70
popd
71
71
72
72
# Clone ratel repo.
73
- # pushd $basedir
74
- # git clone [email protected] :dgraph-io/ratel.git
75
- # popd
73
+ pushd $basedir
74
+ git clone
[email protected] :dgraph-io/ratel.git
75
+ popd
76
76
77
- # pushd $basedir/ratel
78
- # git pull
79
- # source ~/.nvm/nvm.sh
80
- # nvm install --lts
81
- # ./scripts/build.prod.sh
82
- # popd
77
+ pushd $basedir /ratel
78
+ git pull
79
+ source ~ /.nvm/nvm.sh
80
+ nvm install --lts
81
+ ./scripts/build.prod.sh
82
+ popd
83
83
84
84
# Build Windows.
85
85
pushd $basedir /dgraph/dgraph
@@ -89,10 +89,10 @@ pushd $basedir/dgraph/dgraph
89
89
mv dgraph-windows-4.0-amd64.exe $TMP /windows/dgraph.exe
90
90
popd
91
91
92
- # pushd $basedir/ratel
93
- # xgo --targets=windows/amd64 -ldflags "-X $ratel_release=$release_version" .
94
- # mv ratel-windows-4.0-amd64.exe $TMP/windows/dgraph-ratel.exe
95
- # popd
92
+ pushd $basedir /ratel
93
+ xgo --targets=windows/amd64 -ldflags " -X $ratel_release =$release_version " .
94
+ mv ratel-windows-4.0-amd64.exe $TMP /windows/dgraph-ratel.exe
95
+ popd
96
96
97
97
# Build Darwin.
98
98
pushd $basedir /dgraph/dgraph
@@ -102,10 +102,10 @@ pushd $basedir/dgraph/dgraph
102
102
mv dgraph-darwin-10.9-amd64 $TMP /darwin/dgraph
103
103
popd
104
104
105
- # pushd $basedir/ratel
106
- # xgo --targets=darwin-10.9/amd64 -ldflags "-X $ratel_release=$release_version" .
107
- # mv ratel-darwin-10.9-amd64 $TMP/darwin/dgraph-ratel
108
- # popd
105
+ pushd $basedir /ratel
106
+ xgo --targets=darwin-10.9/amd64 -ldflags " -X $ratel_release =$release_version " .
107
+ mv ratel-darwin-10.9-amd64 $TMP /darwin/dgraph-ratel
108
+ popd
109
109
110
110
# Build Linux.
111
111
pushd $basedir /dgraph/dgraph
@@ -116,20 +116,20 @@ pushd $basedir/dgraph/dgraph
116
116
mv dgraph-linux-amd64 $TMP /linux/dgraph
117
117
popd
118
118
119
- # pushd $basedir/ratel
120
- # xgo --targets=linux/amd64 -ldflags "-X $ratel_release=$release_version" .
121
- # strip -x ratel-linux-amd64
122
- # mv ratel-linux-amd64 $TMP/linux/dgraph-ratel
123
- # popd
119
+ pushd $basedir /ratel
120
+ xgo --targets=linux/amd64 -ldflags " -X $ratel_release =$release_version " .
121
+ strip -x ratel-linux-amd64
122
+ mv ratel-linux-amd64 $TMP /linux/dgraph-ratel
123
+ popd
124
124
125
125
createSum () {
126
126
os=$1
127
127
echo " Creating checksum for $os "
128
128
pushd $TMP /$os
129
129
csum=$( shasum -a 256 dgraph | awk ' {print $1}' )
130
130
echo $csum /usr/local/bin/dgraph >> ../dgraph-checksum-$os -amd64.sha256
131
- # csum=$(shasum -a 256 dgraph-ratel | awk '{print $1}')
132
- # echo $csum /usr/local/bin/dgraph-ratel >> ../dgraph-checksum-$os-amd64.sha256
131
+ csum=$( shasum -a 256 dgraph-ratel | awk ' {print $1}' )
132
+ echo $csum /usr/local/bin/dgraph-ratel >> ../dgraph-checksum-$os -amd64.sha256
133
133
popd
134
134
}
135
135
0 commit comments