Skip to content

Commit 1dd8376

Browse files
committed
Revert "Temporarily remove Ratel from Dgraph release process."
This reverts commit 4dabc3d.
1 parent 2bc74b1 commit 1dd8376

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

contrib/release.sh

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ set -o xtrace
3232
type strip
3333
type shasum
3434

35-
# ratel_release="github.com/dgraph-io/ratel/server.ratelVersion"
35+
ratel_release="github.com/dgraph-io/ratel/server.ratelVersion"
3636
release="github.com/dgraph-io/dgraph/x.dgraphVersion"
3737
branch="github.com/dgraph-io/dgraph/x.gitBranch"
3838
commitSHA1="github.com/dgraph-io/dgraph/x.lastCommitSHA"
@@ -70,16 +70,16 @@ pushd $basedir/dgraph
7070
popd
7171

7272
# 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
7676

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
8383

8484
# Build Windows.
8585
pushd $basedir/dgraph/dgraph
@@ -89,10 +89,10 @@ pushd $basedir/dgraph/dgraph
8989
mv dgraph-windows-4.0-amd64.exe $TMP/windows/dgraph.exe
9090
popd
9191

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
9696

9797
# Build Darwin.
9898
pushd $basedir/dgraph/dgraph
@@ -102,10 +102,10 @@ pushd $basedir/dgraph/dgraph
102102
mv dgraph-darwin-10.9-amd64 $TMP/darwin/dgraph
103103
popd
104104

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
109109

110110
# Build Linux.
111111
pushd $basedir/dgraph/dgraph
@@ -116,20 +116,20 @@ pushd $basedir/dgraph/dgraph
116116
mv dgraph-linux-amd64 $TMP/linux/dgraph
117117
popd
118118

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
124124

125125
createSum () {
126126
os=$1
127127
echo "Creating checksum for $os"
128128
pushd $TMP/$os
129129
csum=$(shasum -a 256 dgraph | awk '{print $1}')
130130
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
133133
popd
134134
}
135135

0 commit comments

Comments
 (0)