title: generate .res borland resource file
body: <p>after much digging i finally came accross this thread: <a href="https://stackoverflow.com/questions/24049035/does-the-res-file-need-to-be-in-source-control">Does the .res file need to be in source control?</a> which we never included it in git from the get go. Now I'm trying to build the project from the source from the command line. If i open the file in Borland it will ask me to recreate said file and I can go about making the project. If I delete all generated files and rake I get the following output (exploded the ruby task for clarity)</p>
  
  <pre><code>$ bpr2mak_exe="#{ENV['BCB']}\\Bin\\bpr2mak.exe"
  $ make_exe="#{ENV['BCB']}\\Bin\\make.exe"
  $ puts `#{bpr2mak_exe} -omakefile MyProject.bpr`
  Loading project file
  Loading template
  Generating Makefile
  .........................................
  
  &amp; puts `#{make_exe} -fmakefile`
  MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
  Fatal: 'MyProject.res' does not exist - don't know how to make it
  </code></pre>
  
  <p>I looked at all the command line tools (focused on BRCC32.exe and GRC32.exe) and neither of them look like what I need. I also tried using procmon to see what program is called to generate the res file. So any of you Borland/Embarcado people want to pipe up? (here are the command line help screens if it helps)</p>
  
  <pre><code>$ "${BCB}\bin\BRC32.exe" -?
  
  Syntax: BRC32 [options ...] filename
  options marked with a '*' are on by default
  
  -r                    compile only. Do not bind resources
  -fofilename           set output res filename
  -fefilename           set output exe filename
  -v                    verbose
  -ipath                set include path
  -x                    ignore INCLUDE environment variable
  -dname[=string]       define #define
  -32                *  build 32-bit Windows compatible res/exe files
  -16                   build 16-bit Windows compatible res/exe files
  -Vd.d Mark the .exe file with Windows version provided (4.0 is the default)
  -31  Provided for downward compatibility (build 16-bit res/exe files)
  -w32 Provided for downward compatibility (build 32-bit res/exe files)
  -k                    do not create fastload area (16 bit only)
  -t                    (ignored, for compatibility)
  -? or -h              display this message
  
  $ "${BCB}\bin\BRCC32.exe" -?
  Borland Resource Compiler  Version 5.40
  Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
  
  Syntax: BRCC32 [options ...] filename
  options marked with a '*' are on by default
  
  @&lt;filename&gt;        Take instructions from command file
  -r                    (ignored for compatibility)
  -16                   Build 16-bit Windows compatible .res file
  -32                 * Build 32-bit Windows compatible .res file
  -fofilename           Set output filename
  -v                    Verbose
  -ipath                Set include path
  -dname[=string]       Define #define
  -x                    Ignore INCLUDE environment variable
  -m                    Enable multi-byte character support
  -cdddd                set default code page to nnnn
  -lxxxx                set default language to xxxx
  -31   Provided for downward compatibility (build 16-bit .res file)
  -w32  Provided for downward compatibility (build 16-bit .res file)
  -? or -h              Display this message
  </code></pre>
  
  <p>and just for fun I tried running them against the project file</p>
  
  <pre><code>$ "${BCB}\bin\BRC32.exe" -r MyProject.bpr
  
  Borland Resource Compiler  Version 5.40
  Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
  
  Error MyProject.bpr 1 1: Expecting resource name or resource type name
  
  $ "${BCB}\bin\BRCC32.exe" -r MyProject.bpr
  Borland Resource Compiler  Version 5.40
  Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
  
  Error MyProject.bpr 1 1: Expecting resource name or resource type name
  </code></pre>