加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bootstrap 736 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dominic Grauvogl 提交于 2019-06-24 13:16 . Remove dead code in bootstrap
#!/bin/sh
# SPDX-License-Identifier: BSD-3-Clause
set -e
# generate list of source files for use in Makefile.am
# if you add new source files, you must run ./bootstrap again
src_listvar () {
basedir=$1
suffix=$2
var=$3
find "${basedir}" -name "${suffix}" | LC_ALL=C sort | tr '\n' ' ' | (printf "${var} = " && cat)
echo ""
}
VARS_FILE=src_vars.mk
AUTORECONF=${AUTORECONF:-autoreconf}
echo "Generating file lists: ${VARS_FILE}"
(
src_listvar "lib" "*.c" "LIB_C"
src_listvar "lib" "*.h" "LIB_H"
printf "LIB_SRC = \$(LIB_C) \$(LIB_H)\n"
src_listvar "test/integration/tests" "*.sh" "SYSTEM_TESTS"
printf "ALL_SYSTEM_TESTS = \$(SYSTEM_TESTS)\n"
) > ${VARS_FILE}
mkdir -p m4
${AUTORECONF} --install --sym
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化