chore fix all script, readlink have no -f param in some macos

pull/300/head
q191201771 2 years ago
parent 9d8a9b84e2
commit 22281a883a

@ -6,6 +6,14 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..

@ -9,7 +9,7 @@
# 2. HTTP-API和HTTP-Notify
# 3. Web-UI
# 4. Go版本
# 5. TODO 依赖版本目前只有naza
# 5. 依赖版本目前只有naza
# 已检查的git commit hash id, 或者tag号
# 本地代码会和该版本对比
@ -42,6 +42,14 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..
@ -82,3 +90,7 @@ echo '----------doc go version----------'
cat ${ROOT_DIR}/go.mod | grep 'go' | grep -v 'module' | grep -v 'require'
cat ${ROOT_DIR}/README.md | grep 'make sure that Go version'
cat ${ROOT_DIR}/../lalext/lal_website/ThirdDeps.md | grep 'Go版本需要'
echo '----------dep naza----------'
cat ${ROOT_DIR}/go.mod | grep 'naza'
head -n 1 ${ROOT_DIR}/../naza/CHANGELOG.md

@ -6,10 +6,20 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..
cd ${ROOT_DIR}
rm -rf ./release ./bin ./lal_record ./logs coverage.txt
rm -rf coverage.txt
rm -rf *.laldump *.log
rm -rf ./release ./bin ./lal_record ./logs
find ./pkg -name 'lal_record' | xargs rm -rf
find ./pkg -name 'logs' | xargs rm -rf

@ -23,6 +23,14 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..

@ -16,6 +16,14 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..

@ -6,6 +6,14 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..

@ -6,6 +6,14 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..

@ -12,6 +12,14 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..

@ -6,6 +6,14 @@ go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct
THIS_FILE=$(readlink -f $0)
# readlink have no -f param in some macos
if [ $? -ne 0 ]; then
cd `dirname $0`
TARGET_FILE=`basename $0`
PHYS_DIR=`pwd -P`
THIS_FILE=$PHYS_DIR/$TARGET_FILE
cd -
fi
THIS_DIR=$(dirname $THIS_FILE)
ROOT_DIR=${THIS_DIR}/..

Loading…
Cancel
Save