File: s_winmsi

package info (click to toggle)
db5.3 5.3.28%2Bdfsg1-0.5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 158,360 kB
  • sloc: ansic: 448,411; java: 111,824; tcl: 80,544; sh: 44,326; cs: 33,697; cpp: 21,604; perl: 14,557; xml: 10,799; makefile: 4,077; yacc: 1,003; awk: 965; sql: 801; erlang: 342; python: 216; php: 24; asm: 14
file content (94 lines) | stat: -rwxr-xr-x 2,035 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash -
############################################################
# Build Windows Binary Distribution for BDB 11gR2
#
# Assumes current dir is db/dist inside a clean, unzipped 
# tree from a source distribution package
#
# Usage:  bash s_winmsi []
# 
# Steps:
#  1. Build release and debug binaries (including java and php)
#  2. Build additional included languages (perl, python)
#  3. Build, or check .wxs file (uses Python)
#  4. Build .msi
#
# db-version.msi ends up in $PRODUCT_BLDDIR/wix
#
# Options:
#  TBD -- add some
############################################################

#
# Get utility functions
#
. winmsi/s_winmsi.fcn

ERRORLOG=winmsi.log
SetupErrorLog

# Do this before parsing options, we need the version number
. ./RELEASE
dbver=db-$DB_VERSION

# Set variables used by functions to customize this installer
PRODUCT_NAME=`printf "Berkeley DB %d%sR%d" $DB_VERSION_FAMILY $DB_VERSION_LETTER $DB_VERSION_RELEASE`
PRODUCT_VERSION="$DB_VERSION"
PRODUCT_VERSION_MAJOR="$DB_VERSION_MAJOR"
PRODUCT_VERSION_MINOR="$DB_VERSION_MINOR"
PRODUCT_VERSION_PATCH="$DB_VERSION_PATCH"
PRODUCT_STAGE=`pwd`/..
PRODUCT_LICENSEDIR="${PRODUCT_STAGE}"
PRODUCT_BLDDIR="${PRODUCT_STAGE}"
REG_KEY_NAME="Berkeley DB"
REG_KEY_VERSION="$PRODUCT_VERSION_MAJOR.$PRODUCT_VERSION_MINOR.$PRODUCT_VERSION_PATCH"
DIST_DIR=`pwd`
MSI_DIR=winmsi

Progress "s_winmsi starting, errors to $ERRORLOG"

SetProductDir

Progress "Building from $PRODUCT_BLDDIR, $dbver is $PRODUCT_SUB_BLDDIR"

RequireCygwin
RequireJava
RequireWix
RequirePython
RequireXQilla

#
# Stage source files such as examples, etc *before*
# the build to avoid build artifacts.
#
StageSourceComponents

#
# Build from source
#
BuildProduct

#
# Stage runtime files in a directory tree that looks like
# bin, lib, include, etc
#
StageRuntimeComponents

#
# Build the license file as rtf
#
CreateLicenseRtf ../LICENSE License.rtf

#
# Build runtime .wxs files
#
CreateRuntimeComponents

#
# Create the .msi
#
CreateMsi

Progress "s_winmsi finished, $OPT_OUTFILE created."
exit 0