3
# Save the command line for debug outputs
8
if [ -z "$MINGW_EXE_PATH" ]; then
9
echo "You have to set MINGW_EXE_PATH to run rc.sh" >&2
14
# # Find the correct rc.exe. This could be done by the configure script,
15
# # But as we seldom use the resource compiler, it might as well be done here...
20
# if [ -f $p/windres.exe ]; then
21
# if [ -n "`$p/windres.exe --version 2>&1 | grep -i "GNU windres"`" ]; then
28
RCC=$MINGW_EXE_PATH/windres.exe
30
if [ -z "$RCC" ]; then
31
echo 'windres.exe not found!' >&2
35
while test -n "$1" ; do
40
MPATH=`cygpath -m $1`;
41
OUTPUT_FILENAME="$MPATH";;
43
y=`echo $x | sed 's,^-[Io]\(/.*\),\1,g'`;
44
MPATH=`cygpath -m $y`;
45
OUTPUT_FILENAME="$MPATH";;
48
MPATH=`cygpath -m $1`;
49
CMD="$CMD -I\"$MPATH\"";;
51
y=`echo $x | sed 's,^-[Io]\(/.*\),\1,g'`;
52
MPATH=`cygpath -m $y`;
53
CMD="$CMD -I\"$MPATH\"";;
55
MPATH=`cygpath -m $x`;
56
CMD="$CMD \"$MPATH\"";;
58
y=`echo $x | sed 's,",\\\",g'`;
64
if [ -n "$OUTPUT_FILENAME" ]; then
65
CMD="-o $OUTPUT_FILENAME $CMD"
67
if [ "X$RC_SH_DEBUG_LOG" != "X" ]; then
68
echo rc.sh "$SAVE" >>$RC_SH_DEBUG_LOG
69
echo windres.exe $CMD >>$RC_SH_DEBUG_LOG
71
eval $RCC "$CMD" >/tmp/rc.exe.${p}.1 2>/tmp/rc.exe.${p}.2
73
cat /tmp/rc.exe.${p}.2 >&2
74
cat /tmp/rc.exe.${p}.1
75
rm -f /tmp/rc.exe.${p}.2 /tmp/rc.exe.${p}.1