1 Star 0 Fork 0

谭小盘/xengt-ha-xen-hag

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install.sh 658 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
src='./install'
if [ -d ./dist ]; then
src='./dist/install'
fi
if ! [ -d $src ]; then
echo "ERROR: Could not find a valid distribution directory."
echo " If this is a source-only release, try 'make dist'."
exit 1
fi
dst='/'
if [ $# -ne 0 ]; then
dst=$1
fi
if ! [ -d $dst ]; then
echo "ERROR: You must specify a valid install directory."
echo " The specified directory '$dst' is not valid."
exit 1
fi
tmp="`mktemp -d`"
echo "Installing Xen from '$src' to '$dst'..."
(cd $src; tar -cf - * ) | tar -C "$tmp" -xf -
(cd $tmp; tar -cf - *) | tar --no-same-owner -C "$dst" -xf -
rm -rf "$tmp"
echo "All done."
exit 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tan_xiaopan/xengt-ha-xen-hag.git
git@gitee.com:tan_xiaopan/xengt-ha-xen-hag.git
tan_xiaopan
xengt-ha-xen-hag
xengt-ha-xen-hag
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385