forked from LibreDWG/libredwg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog.in
30 lines (28 loc) · 859 Bytes
/
log.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# create -v4 logs for DWGs, you can override -v?
srcdir="@srcdir@"
make -s -j4 -C src
make -s -j4 -C programs dwgread
@DSYMUTIL@ programs/dwgread
v=-v4
for d in "$@"; do
case $d in
-v*) v=$d
;;
*)
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
dir=_$(basename `dirname "$d"`)
if [ x$dir = x_test-data ]; then dir=""; fi
if [ x$dir = x_td ]; then dir=""; fi
log=`basename "$d" .dwg`$dir.log
echo programs/dwgread $v "$d" 2\>$log
# (sleep 12s; killall dwgread 2>/dev/null) &
@TIMEOUT_10@ @LTEXEC@ programs/dwgread $v "$d" 2>$log
;;
esac
done