4 Star 2 Fork 2

Gitee 极速下载/API-Umbrella

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/NREL/api-umbrella
克隆/下载
configure 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
Nick Muerdter 提交于 3年前 . Update dependencies.
#!/usr/bin/env bash
set -e -u
prefix="/opt/api-umbrella"
source_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
build_dir="$(pwd)"
usage() {
cat <<EOS
Usage: ./configure [OPTION]...
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$prefix]
EOS
exit 0
}
while [ $# -gt 0 ]; do
key="$1"
case $key in
--prefix=*)
prefix="${key#*=}"
shift
;;
--help|-h)
usage
;;
*)
echo "configure: error: unrecognized option: '$key'"
echo "Try './configure --help' for more information"
exit 1
;;
esac
done
if [ -z "$prefix" ]; then
echo "configure: error: missing argument to --prefix"
exit 1
fi
echo "configure: creating Makefile"
< "$source_dir/Makefile.in" sed -e "s|@prefix@|$prefix|g" | sed -e "s|@source_dir@|$source_dir|g" | sed -e "s|@build_dir@|$build_dir|g" > Makefile
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Ruby
1
https://gitee.com/mirrors/API-Umbrella.git
git@gitee.com:mirrors/API-Umbrella.git
mirrors
API-Umbrella
API-Umbrella
main

搜索帮助