加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
patched-open-vm-tools.sh 928 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ross Smith II 提交于 2016-01-19 08:55 . Update patched-open-vm-tools.sh
#!/bin/bash
# This file can be grabbed via wget/curl to bootstrap the repo
# A really handy place to use this bootstrap would be Packer
set -e
if [[ -n "$(type -P apt-get)" ]]; then
# Debian and derivatives
apt-get install -y git
elif [[ -n "$(type -P yum)" ]]; then
# Fedora, CentOS or RHEL and derivatives
yum -y install git
elif [[ -n "$(type -P zypper)" ]]; then
# openSUSE
zypper --non-interactive install git
elif [[ -n "$(type -P pacman )" ]]; then
pacman -S --needed --noconfirm git
fi
# This is fragile, it needs updated depending on the branch/fork you want to run
git clone https://github.com/rasa/vmware-tools-patches.git
cd vmware-tools-patches
# Sourcing the setup script gets the dependencies we really need,
# so that we don't have to lay them all out here and we could uninstall them
# when we are done with them post compile
. ./setup.sh
./download-tools.sh latest
./untar-and-patch.sh
./compile.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化