Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
marsishandsome committed Dec 24, 2019
1 parent 655e020 commit e11917b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions release-centos7/build/build-cluster-manager.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/bash

set -ueo pipefail
set -ueox pipefail

SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
SRCPATH=${1:-$(cd $SCRIPTPATH/../..; pwd -P)}

install_dir="$SRCPATH/release-centos7/tiflash"
if [ -d "$install_dir" ]; then rm -rf "$install_dir"/*; else mkdir -p "$install_dir"; fi

cd ${SRCPATH}/cluster_manage
./release.sh
cp -r dist/flash_cluster_manager/ "$install_dir"
cp -r dist/flash_cluster_manager "$install_dir/flash_cluster_manager"
6 changes: 6 additions & 0 deletions release-centos7/build/build-release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash

set -ueox pipefail

SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
SRCPATH=${1:-$(cd $SCRIPTPATH/../..; pwd -P)}

install_dir="$SRCPATH/release-centos7/tiflash"
if [ -d "$install_dir" ]; then rm -rf "$install_dir"/*; else mkdir -p "$install_dir"; fi

$SCRIPTPATH/build-tiflash-proxy.sh
$SCRIPTPATH/build-cluster-manager.sh
Expand Down
2 changes: 1 addition & 1 deletion release-centos7/build/build-tiflash-proxy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -ueo pipefail
set -ueox pipefail

SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
SRCPATH=${1:-$(cd $SCRIPTPATH/../..; pwd -P)}
Expand Down
1 change: 0 additions & 1 deletion release-centos7/build/build-tiflash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ CMAKE_BUILD_TYPE="RELWITHDEBINFO"
ENABLE_EMBEDDED_COMPILER="FALSE"

install_dir="$SRCPATH/release-centos7/tiflash"
if [ -d "$install_dir" ]; then rm -rf "$install_dir"/*; else mkdir -p "$install_dir"; fi

if [ -d "$SRCPATH/contrib/kvproto" ]; then
cd "$SRCPATH/contrib/kvproto"
Expand Down

0 comments on commit e11917b

Please sign in to comment.