#!/bin/sh

# The command line arguments are:
# $1: the name of the .rc file to check
# $2: the name of the resource object file to produce, if the rc file exists

# Check if we have a resource file for this DLL.
rcfile=$1
resfile=$2
if [ -f $rcfile ]; then
	${WINDRES-windres} $rcfile $resfile
else
    # Return failure
    exit 1
fi
