2 ############################################################
3 # Build Windows Binary Distribution for BDB 11gR2
5 # Assumes current dir is db/dist inside a clean, unzipped
6 # tree from a source distribution package
8 # Usage: bash s_winmsi []
11 # 1. Build release and debug binaries (including java and php)
12 # 2. Build additional included languages (perl, python)
13 # 3. Build, or check .wxs file (uses Python)
16 # db-version.msi ends up in $PRODUCT_BLDDIR/wix
20 ############################################################
23 # Get utility functions
30 # Do this before parsing options, we need the version number
34 # Set variables used by functions to customize this installer
35 PRODUCT_NAME=`printf "Berkeley DB %d%sR%d" $DB_VERSION_FAMILY $DB_VERSION_LETTER $DB_VERSION_RELEASE`
36 PRODUCT_VERSION="$DB_VERSION"
37 PRODUCT_VERSION_MAJOR="$DB_VERSION_MAJOR"
38 PRODUCT_VERSION_MINOR="$DB_VERSION_MINOR"
39 PRODUCT_VERSION_PATCH="$DB_VERSION_PATCH"
40 PRODUCT_STAGE=`pwd`/..
41 PRODUCT_LICENSEDIR="${PRODUCT_STAGE}"
42 PRODUCT_BLDDIR="${PRODUCT_STAGE}"
43 REG_KEY_NAME="Berkeley DB"
44 REG_KEY_VERSION="$PRODUCT_VERSION_MAJOR.$PRODUCT_VERSION_MINOR.$PRODUCT_VERSION_PATCH"
48 Progress "s_winmsi starting, errors to $ERRORLOG"
52 Progress "Building from $PRODUCT_BLDDIR, $dbver is $PRODUCT_SUB_BLDDIR"
61 # Stage source files such as examples, etc *before*
62 # the build to avoid build artifacts.
72 # Stage runtime files in a directory tree that looks like
73 # bin, lib, include, etc
75 StageRuntimeComponents
78 # Build the license file as rtf
80 CreateLicenseRtf ../LICENSE License.rtf
83 # Build runtime .wxs files
85 CreateRuntimeComponents
92 Progress "s_winmsi finished, $OPT_OUTFILE created."