代码拉取完成,页面将自动刷新
同步操作将从 openEuler/BiSheng-Autotuner 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
# Script to package autotuner for release purposes
# Copyright (C) 2017-2020, Huawei Technologies Co., Ltd. All rights reserved.
python3 -m pip install "wheel==0.34.2" --user
python3 -m pip install "pyc_wheel==1.2.2" --user
SCRIPT_PATH=$(dirname $(realpath -s $0))
DESTDIR=$1
rm -rf $SCRIPT_PATH/dist; mkdir $SCRIPT_PATH/dist
python3 setup.py bdist_wheel -d $SCRIPT_PATH/dist/wheel || exit 1;
python3 -m pyc_wheel $SCRIPT_PATH/dist/wheel/autotuner-*.whl || exit 1;
mkdir $SCRIPT_PATH/dist/config
cp $SCRIPT_PATH/config/coremark_sample.ini $SCRIPT_PATH/dist/config || exit 1;
cp $SCRIPT_PATH/config/dhrystone_sample.ini $SCRIPT_PATH/dist/config || exit 1;
mkdir $SCRIPT_PATH/dist/plugin
cp $SCRIPT_PATH/plugin/coremark_tuner.py $SCRIPT_PATH/dist/plugin || exit 1;
cp $SCRIPT_PATH/plugin/dhrystone_tuner.py $SCRIPT_PATH/dist/plugin || exit 1;
if [ -n "$DESTDIR" ]; then
if mkdir -p "$DESTDIR"; then
echo "Copying installables to $DESTDIR/autotuner"
cp -avT $SCRIPT_PATH/dist "$DESTDIR/autotuner"
else
echo "Could not create installation directory: $DESTDIR"
exit 1
fi
else
echo "Creating tar achive for distribution"
tar -czvf $SCRIPT_PATH/dist.tar.gz $SCRIPT_PATH/dist/
echo "The distribution achive has been created to $SCRIPT_PATH/dist/ and $SCRIPT_PATH/dist.tar.gz"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。