1 Star 0 Fork 0

JIAHE/python-virtinst

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
autobuild.sh 834 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
set -v
set -e
if [ -z "$AUTOBUILD_INSTALL_ROOT" ] ; then
echo "This script is only meant to be used with an autobuild server."
echo "Please see INSTALL for build instructions."
exit 1
fi
rm -rf build dist python-virtinst.spec MANIFEST
python setup.py build
python setup.py test
python setup.py install --prefix=$AUTOBUILD_INSTALL_ROOT
VERSION=`python setup.py --version`
cat python-virtinst.spec.in | sed -e "s/::VERSION::/$VERSION/" > python-virtinst.spec
python setup.py sdist
if [ -f /usr/bin/rpmbuild ]; then
if [ -n "$AUTOBUILD_COUNTER" ]; then
EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
else
NOW=`date +"%s"`
EXTRA_RELEASE=".$USER$NOW"
fi
rpmbuild --define "extra_release $EXTRA_RELEASE" \
--define "_sourcedir `pwd`/dist" \
-ba --clean python-virtinst.spec
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaojianzheng/python-virtinst.git
git@gitee.com:xiaojianzheng/python-virtinst.git
xiaojianzheng
python-virtinst
python-virtinst
master

搜索帮助