3
# Save the command line for debug outputs
8
# Find the correct mc.exe. This could be done by the configure script,
9
# But as we seldom use the resource compiler, it might as well be done here...
14
if [ -f $p/mc.exe ]; then
15
if [ -n "`$p/mc.exe -? 2>&1 | grep -i "message compiler"`" ]; then
22
if [ -z "$MCC" ]; then
23
echo 'mc.exe not found!' >&2
27
while test -n "$1" ; do
34
y=`echo $x | sed 's,^-[Io]\(/.*\),\1,g'`;
38
MPATH=`cygpath -m $1`;
39
CMD="$CMD -I\"$MPATH\"";;
41
y=`echo $x | sed 's,^-[Io]\(/.*\),\1,g'`;
42
MPATH=`cygpath -m $y`;
43
CMD="$CMD -I\"$MPATH\"";;
45
MPATH=`cygpath -m -a $x`;
46
CMD="$CMD \"$MPATH\"";;
51
if [ "X$MC_SH_DEBUG_LOG" != "X" ]; then
52
echo rc.sh "$SAVE" >>$MC_SH_DEBUG_LOG
53
echo rc.exe $CMD >>$MC_SH_DEBUG_LOG
55
if [ -n "$OUTPUT_DIRNAME" ]; then
58
if [ "$RES" != "0" ]; then
59
echo "mc.sh: Error: could not cd to $OUTPUT_DIRNAME">&2
63
eval $MCC "$CMD" >/tmp/mc.exe.${p}.1 2>/tmp/mc.exe.${p}.2
65
tail +2 /tmp/mc.exe.${p}.2 >&2
66
cat /tmp/mc.exe.${p}.1
67
rm -f /tmp/mc.exe.${p}.2 /tmp/mc.exe.${p}.1