3
# Save the command line for debug outputs
8
# Find the correct rc.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/rc.exe ]; then
15
if [ -n "`$p/rc.exe -? 2>&1 | grep -i "resource compiler"`" ]; then
22
if [ -z "$RCC" ]; then
23
echo 'rc.exe not found!' >&2
27
while test -n "$1" ; do
32
MPATH=`cygpath -m $1`;
33
OUTPUT_FILENAME="$MPATH";;
35
y=`echo $x | sed 's,^-[Io]\(/.*\),\1,g'`;
36
MPATH=`cygpath -m $y`;
37
OUTPUT_FILENAME="$MPATH";;
40
MPATH=`cygpath -m $1`;
41
CMD="$CMD -I\"$MPATH\"";;
43
y=`echo $x | sed 's,^-[Io]\(/.*\),\1,g'`;
44
MPATH=`cygpath -m $y`;
45
CMD="$CMD -I\"$MPATH\"";;
47
MPATH=`cygpath -m $x`;
48
CMD="$CMD \"$MPATH\"";;
50
y=`echo $x | sed 's,",\\\",g'`;
56
if [ -n "$OUTPUT_FILENAME" ]; then
57
CMD="-Fo$OUTPUT_FILENAME $CMD"
59
if [ "X$RC_SH_DEBUG_LOG" != "X" ]; then
60
echo rc.sh "$SAVE" >>$RC_SH_DEBUG_LOG
61
echo rc.exe $CMD >>$RC_SH_DEBUG_LOG
63
eval $RCC "$CMD" >/tmp/rc.exe.${p}.1 2>/tmp/rc.exe.${p}.2
65
tail +2 /tmp/rc.exe.${p}.2 >&2
66
cat /tmp/rc.exe.${p}.1
67
rm -f /tmp/rc.exe.${p}.2 /tmp/rc.exe.${p}.1