1 Star 0 Fork 20

Vanient/isula-build-src

forked from src-openEuler/isula-build 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
apply-patches 846 Bytes
一键复制 编辑 原始数据 按行查看 历史
DCCooper 提交于 2020-09-10 18:24 +08:00 . isula-build:bump version to 0.9.3
#!/bin/bash
# Copyright (c) Huawei Technologies Co., Ltd. 2019-2020. All rights reserved.
# Description: This shell script is used to apply patches for the project
# Author: lixiang172@huawei.com
# Create: 2020-08-21
set -ex
pkg=isula-build
cwd=${PWD}
src=${cwd}/${pkg}
tar_file=v"$(awk -F"-" '{print $1}' < VERSION-openeuler)".tar.gz
tar -zxvf "${tar_file}"
if [ ! -d patch ]; then
tar -zxvf patch.tar.gz
fi
cd "${src}"
git init
git add .
git config user.name 'build'
git config user.email 'build@obs.com'
git commit -m 'init build'
cd "${cwd}"
series=${cwd}/series.conf
while IPF= read -r line; do
if [[ "${line}" =~ ^patch* ]]; then
echo "git apply ${cwd}/${line}"
cd "${src}" && git apply "${cwd}/${line}"
fi
done <"${series}"
cd "${cwd}"
cp -rf "${src}"/* .
cp -f VERSION-openeuler VERSION
rm -rf "${src}"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Vanient/isula-build-src.git
git@gitee.com:Vanient/isula-build-src.git
Vanient
isula-build-src
isula-build-src
master

搜索帮助