代码拉取完成,页面将自动刷新
#!/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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。