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