2 Star 0 Fork 0

mirrors_gnu/libredwg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test-dxf.sh 940 Bytes
一键复制 编辑 原始数据 按行查看 历史
Reini Urban 提交于 2024-01-11 12:44 . shfmt: regen-shfmt without -kp
#!/bin/sh
# see also dxf-roundtrip.sh
arg="${1:-sample_2000}"
dir="$(dirname "$arg")"
base="$(basename "$arg")"
if [ "$dir" = "." ]; then
out="${base}"
else
out="${base}_${dir}"
fi
cmpdxf="programs/cmp_dxf.pl"
filtdxf="programs/filt_dxf.pl"
datadir="test/test-data"
if [ ! -f "$cmpdxf" ]; then
cmpdxf="../programs/cmp_dxf.pl"
filtdxf="../programs/filt_dxf.pl"
datadir="../test/test-data"
fi
echo "$arg => $out.dxf"
make -s -j4 &&
echo programs/dwg2dxf -v4 -o "$out.dxf" "$datadir/$arg.dwg" &&
programs/dwg2dxf -v4 -o "$out.dxf" "$datadir/$arg.dwg" 2>"${out}.log" &&
$filtdxf "$out.dxf" >"_${out}.dxf"
mv "_${out}.dxf" "${out}.dxf"
grep -E -v -B1 '\r' "${out}.dxf" | head && unix2dos "${out}.dxf"
if [ -f "$datadir/$arg.dxf" ]; then
diff -bu "$datadir/$arg.dxf" "$out.dxf" | $cmpdxf | less
elif [ -f "$datadir-$dir/$arg.dxf" ]; then
diff -bu "$datadir-$dir/$arg.dxf" "$out.dxf" | $cmpdxf | less
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_gnu/libredwg.git
[email protected]:mirrors_gnu/libredwg.git
mirrors_gnu
libredwg
libredwg
master

搜索帮助