Skip to Content.
Sympa Menu

freetds - Re: [freetds] freetds in win32

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] freetds in win32
  • Date: Thu, 6 Feb 2003 14:20:33 -0500

On Thu, 06 Feb 2003 09:25:22 -0800, "Frank M. Kromann"
<frank AT kromann.info> wrote:
> > Is MSVC's build system really so
> > brain dead that it can't handle such a task?
>
> No. MSVC can handle custom builds calling all sorts of external
> commands, including copy.

Right, it's just not very obvious.

>From memory, in Project|Settings, go to the last two tabs. They are
something like "pre-build script" and "post-build script". Enter there
any command or .CMD file you want executed. Something along these lines
might work:

<snip>
set src=include
set tgt=src\win32

rem Rename the files while copying to a temporary place
xcopy %src%\*.h.in %tgt%\tmp\*.

rem Use "replace" to avoid overwriting targets
rem that were updated manually.

rename %tgt%\tmp\*.h %tgt%

rem Cleanup
del %tgt%\tmp\*.h
rmdir %tgt%\tmp 2> NUL:

rem feedback:
dir /s/b %tgt%\..\*.h
</snip>

I'm not making this up. (!)

Let's not have copies of files in the source tree. :-)

--jkl





Archive powered by MHonArc 2.6.24.

Top of Page