Skip to content

Commit

Permalink
add ChangeLog, polish code
Browse files Browse the repository at this point in the history
  • Loading branch information
vinllen committed Jun 21, 2019
1 parent e988e6c commit 0cd342d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2019-06-21 Alibaba Cloud.
* VERSION: 1.6.8
* IMPROVE: add hypervisor.
* IMPROVE: add key filter in `rump` mode.
* IMPROVE: add prometheus metrics with url: "localhost:$http_profile/metrics"
2019-06-13 Alibaba Cloud.
* VERSION: 1.6.7
* IMPROVE: split big key in `rump` mode.
Expand Down
9 changes: 8 additions & 1 deletion build.sh
Expand Up @@ -13,6 +13,9 @@ else
fi
branch=$branch","$cid

output=./bin/
rm -rf ${output}

# make sure we're in the directory where the script lives
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
Expand All @@ -36,9 +39,13 @@ info=$info","$t

echo "[ BUILD RELEASE ]"
run_builder='go build -v'
$run_builder -ldflags "-X $info" -o "bin/redis-shake" "./src/redis-shake/main/main.go"
$run_builder -ldflags "-X $info" -o "${output}/redis-shake" "./src/redis-shake/main/main.go"
echo "build successfully!"

# copy scripts
cp scripts/start.sh ${output}/
cp scripts/stop.sh ${output}/

if [ "Linux" == "$(uname -s)" ];then
# hypervisor
gcc -Wall -O3 scripts/hypervisor.c -o ${output}/hypervisor -lpthread
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0cd342d

Please sign in to comment.