Ai
1 Star 0 Fork 0

zip/rtpengine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_test_wrapper 489 Bytes
一键复制 编辑 原始数据 按行查看 历史
Richard Fuchs 提交于 2021-03-11 03:36 +08:00 . TT#14008 move build tests to a wrapper script
#!/bin/sh
TARGET=$1
ROOT=$(echo "$TARGET" | sed 's/\.h$//')
if test "x$MAKE" = x; then
MAKE=make
fi
echo "Looking for usable alternative for $TARGET"
rm -f "$ROOT"-test "$ROOT"-test.c
ln -s ../lib/"$ROOT"-test.c
for x in ../lib/"$ROOT"*.h; do
echo "Trying build with $x"
rm -f "$TARGET"
(echo '/******** GENERATED FILE ********/'; cat "$x") > "$TARGET"
$MAKE "$ROOT"-test && break
echo "Failed build with $x"
rm -f "$TARGET"
done
rm -f "$ROOT"-test "$ROOT"-test.c
test -f "$TARGET"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zip/rtpengine.git
git@gitee.com:zip/rtpengine.git
zip
rtpengine
rtpengine
master

搜索帮助