1 Star 0 Fork 31

王佳栋/third_party_bzip2_2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install.sh 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation version 2.1
# of the License.
#
# Copyright(c) 2023 Huawei Device Co., Ltd.
set -e
cd $1
if [ "$(uname)" == "Linux" ];then
flock -x "README" -c "tar xvf bzip2-1.0.8.tar.gz &&
cd bzip2-1.0.8 &&
patch -p1 < $1/0002-CVE-2019-12900.patch --fuzz=0 --no-backup-if-mismatch &&
patch -p1 < $1/0001-add-compile-option.patch --fuzz=0 --no-backup-if-mismatch &&
patch -p1 < $1/0003-license-and-version-print-should-output-to-stdout-and-exit-with-code-0.patch --fuzz=0 --no-backup-if-mismatch &&
mv * .."
exit 0
fi
tar xvf bzip2-1.0.8.tar.gz
cd bzip2-1.0.8
patch -p1 < $1/0002-CVE-2019-12900.patch --fuzz=0 --no-backup-if-mismatch
patch -p1 < $1/0001-add-compile-option.patch --fuzz=0 --no-backup-if-mismatch
patch -p1 < $1/0003-license-and-version-print-should-output-to-stdout-and-exit-with-code-0.patch --fuzz=0 --no-backup-if-mismatch
mv * ..
exit 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wang-jiadong11/third_party_bzip2_2.git
git@gitee.com:wang-jiadong11/third_party_bzip2_2.git
wang-jiadong11
third_party_bzip2_2
third_party_bzip2_2
master

搜索帮助