1 Star 1 Fork 1

范凯毓/libredwg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
log.in 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
Reini Urban 提交于 2021-10-04 16:59 . update for latest shellcheck
#!@BASH@
# -*- mode: sh -*-
# create -v4 logs for DWGs, you can override -v?
srcdir="@srcdir@"
top_builddir="@top_builddir@"
make -s -j4 -C src
make -s -j4 -C programs dwgread
@DSYMUTIL@ programs/dwgread
v=-v4
# dummy to please shellcheck
test -z "$v" && echo $top_builddir
ob="$b"
log=
for d in "$@"; do
# we do use bash
case $d in
-v*) v="$d"
;;
-l*) log="$(cut "$d" -c2-)"
;;
*)
if [ ! -f "$d" ]; then
if [ -f "$srcdir/test/test-data/$d" ]
then
d="$srcdir/test/test-data/$d";
else
if [ -f "$srcdir/test/test-data/$d.dwg" ]
then
d="$srcdir/test/test-data/$d.dwg"
fi
fi
fi
xd=$(dirname "$d")
dir=_$(basename "$xd")
if [ -z "$log" ]; then
case "$d" in
*to/*)
x1=$(dirname "$xd")
dir=_$(basename "$xd")_$(basename "$x1")
;;
*test-old/*)
x1=$(dirname "$xd")
dir=_$(basename "$xd")_$(basename "$x1")
;;
esac
fi
if [ "$dir" = "_test-data" ]; then dir=""; fi
if [ "$dir" = "_td" ]; then dir=""; fi
if [ "$dir" = "_." ]; then dir=""; fi
b=$(basename "$d" .dwg)
[ -z "$log" ] && log="$b$dir.log"
echo "@TIMEOUT_10@ @LTEXEC@ programs/dwgread $v $d 2>$log"
# (sleep 12s; killall dwgread 2>/dev/null) &
@TIMEOUT_10@ @LTEXEC@ programs/dwgread "$v" "$d" 2>"$log"
tail -n2 "$log"
log=
;;
esac
done
v=
b="$ob"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/FanKaiyu/libredwg.git
git@gitee.com:FanKaiyu/libredwg.git
FanKaiyu
libredwg
libredwg
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385