提交 a1a09373 编写于 作者: Z zyyang

other: release script modify

上级 3975eef5
@echo off
set CUR_DIR=%~dp0
set SHELL_DIR=%cd%
set ENTERPRISE_DIR="%SHELL_DIR%\..\.."
set COMMUNITY_DIR="%SHELL_DIR%\.."
set TOOLS_DIR="%SHELL_DIR%\..\src\kit\taos-tools"
cd %ENTERPRISE_DIR%
git checkout -- .
if exist "enterprise\src\plugins\taosainternal\taosadapter" (
del /f "enterprise\src\plugins\taosainternal\taosadapter"
)
if exist "enterprise\src\plugins\taosainternal\upx.tar.xz" (
del /f "enterprise\src\plugins\taosainternal\upx.tar.xz"
)
cd %COMMUNITY_DIR%
git checkout -- .
cd %TOOLS_DIR%
git checkout -- .
if exist "packaging\tools\install-khtools.sh" (
del /f "packaging\tools\install-khtools.sh"
)
if exist "packaging\tools\uninstall-khtools.sh" (
del /f "packaging/tools/uninstall-khtools.sh"
)
if exist "packaging\tools\install-prodbtools.sh" (
del /f "packaging\tools\install-prodbtools.sh"
)
if exist "packaging\tools\uninstall-prodbtools.sh" (
del /f "packaging\tools\uninstall-prodbtools.sh"
)
cd %CUR_DIR%
\ No newline at end of file
#!/bin/bash
CUR_DIR=$(pwd)
SHELL_DIR=$(dirname $(readlink -f "$0"))
ENTERPRISE_DIR=$SHELL_DIR/../..
COMMUNITY_DIR=$SHELL_DIR/..
TOOLS_DIR=$COMMUNITY_DIR/src/kit/taos-tools
cd $ENTERPRISE_DIR
git checkout -- .
if [[ -e enterprise/src/plugins/taosainternal/taosadapter ]]; then
rm -f enterprise/src/plugins/taosainternal/taosadapter
fi
if [[ -e enterprise/src/plugins/taosainternal/upx.tar.xz ]]; then
rm -f enterprise/src/plugins/taosainternal/upx.tar.xz
fi
cd $COMMUNITY_DIR
git checkout -- .
if [[ -e src/plugins/taosadapter/taosadapter ]]; then
rm -f src/plugins/taosadapter/taosadapter
fi
if [[ -e src/plugins/taosadapter/upx.tar.xz ]]; then
rm -f src/plugins/taosadapter/upx.tar.xz
fi
cd $TOOLS_DIR
git checkout -- .
rm -f $(find packaging/tools/ -name install-*tools.sh | grep -v taos)
rm -f $(find packaging/tools/ -name uninstall-*tools.sh | grep -v taos)
rm -rf $COMMUNITY_DIR/debug/*
rm -rf $COMMUNITY_DIR/release/*
if [[ -e $COMMUNITY_DIR/rpms ]]; then
rm -rf $COMMUNITY_DIR/rpms
fi
if [[ -e $COMMUNITY_DIR/debs ]]; then
rm -rf $COMMUNITY_DIR/debs
fi
cd $CUR_DIR
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册