This is a build script to compile Pyfribidi 0.8.0 on Windows. It 
includes additional patches to the Pyfribidi source code that aren't in 
the latest release. This script can either use the included copy of the 
0.8.0 source code or an updated release (as long as the patches can 
still be applied).

Quick installation
==================

  1. Open a Visual Studio 2003 Command Prompt.

  2. 'cd' to the directory containing the build script.

  3. Type 'build.vbs' to download fribidi2, compile it, patch pyfribidi, 
     compile it, and run the tests against fribidi2.

Basic Installation
==================

To alter the build configuration, see the constants at the top of the 
build.vbs script. The following can be customized:

  blDebug
    Set to True to view additional output during the build process.

  blKeepFiles
    Set to True to keep all temporary files used in the build process.

  blRunTests
    Set to False to disable running the tests after the build process.

  intCompression
    The compression ratio used when generating the Unicode files.

  blBuildPyfribidi
    Set to False to disable building Pyfribidi after FriBiDi.

  strPyfribidiDirectory
    The directory containing the Pyfribidi source code.

  strUnicodeData
    The location of the Unicode data files within the fribidi2 source.

  strBaseDirectory
    The directory containing the fribidi2 source code.

  strCVSRepository
    The CVS repository containing the fribidi2 module.

  strCVSModule
    The name of the module within the CVS repository.

  strCVSPath
    Path to the command-line CVS client to use.

  strCompilerPath
    Path to the Visual Studio compiler to use.

  strLinkerPath
    Path to the Visual Studio linker to use.

  strDiffPath
    Path to the Unix-based diff tool to use. This isn't required if the 
    fribidi2 tests won't be run (see blRunTests).

  strPythonPath
    Path to the Python interpreter to use. This isn't required if the 
    Pyfribidi extension won't be build (see blBuildPyfribidi).

The build script will first patch the fribidi2 source code for use on 
Windows. Once complete, it will build the following in order:

   1. fribidi2\gen.tab\gen-unicode-version.exe
   2. fribidi2\lib\fribidi-unicode-version.h
   3. fribidi2\gen.tab\gen-bidi-type-tab.exe
   4. fribidi2\lib\bidi-type.tab.i
   5. fribidi2\gen.tab\gen-joining-type-tab.exe
   6. fribidi2\lib\joining-type.tab.i
   7. fribidi2\gen.tab\gen-arabic-shaping-tab.exe
   8. fribidi2\lib\arabic-shaping.tab.i
   9. fribidi2\gen.tab\gen-mirroring-tab.exe
  10. fribidi2\lib\mirroring.tab.i
  11. fribidi2\lib\fribidi.dll
  12. fribidi2\bin\fribidi.exe
  13. fribidi2\bin\fribidi-benchmark.exe
  14. fribidi2\bin\fribidi-bidi-types.exe
  15. fribidi2\bin\fribidi-caprtl2utf8.exe
  16. pyfribidi2.pyd

It will also copy lib\fribidi.dll to fribidi2\bin and, if compiling 
Pyfribidi, to the root directory.