Mark some Calc slots as inactive in readonly mode
[LibreOffice.git] / solenv / bin / call_installer.sh
blob8b8032f7f3867101c7af7b9331663bcb95579e89
1 #!/bin/sh
3 # unpack parameters
4 VERBOSITY=$1; shift
5 MSITEMPL=$(echo "$@" | cut -d ':' -f 1)
6 LANG=$(echo "$@" | cut -d ':' -f 2)
7 PRODNAME=$(echo "$@" | cut -d ':' -f 3)
8 EXTENSION=$(echo "$@" | cut -d ':' -f 4)
9 PKGFORMAT=$(echo "$@" | cut -d ':' -f 5)
10 STRIP=$(echo "$@" | cut -d ':' -f 6)
12 # need to hack buildid?
13 if [ "${PKGFORMAT}${LIBO_VERSION_PATCH}" = "deb0" ] || \
14 [ "${PKGFORMAT}${LIBO_VERSION_PATCH}" = "rpm0" ] ; then
15 LIBO_VERSION_PATCH=1
18 # switch to verbose?
19 if [ "${VERBOSITY}" = "-verbose" ] ; then
20 set -x
23 # add extra params for Windows
24 EXTRA_PARAMS=
25 if [ "${OS}" = "WNT" ] && [ -n "${MSITEMPL}" ]; then
26 EXTRA_PARAMS="${EXTRA_PARAMS} -msitemplate ${WORKDIR}/CustomTarget/instsetoo_native/install/msi_templates/${MSITEMPL}"
27 EXTRA_PARAMS="${EXTRA_PARAMS} -msilanguage ${WORKDIR}/CustomTarget/instsetoo_native/install/win_ulffiles"
30 # need to strip?
31 if [ "${STRIP}" = "strip" ] ; then
32 export ENABLE_STRIP=1
35 # shellcheck disable=SC2086
36 # shellcheck disable=SC2154
37 ${PERL} -w "${SRCDIR}"/solenv/bin/make_installer.pl \
38 -f "${BUILDDIR}"/instsetoo_native/util/openoffice.lst \
39 -l "${LANG}" \
40 -p "${PRODUCTNAME_WITHOUT_SPACES}${PRODNAME}" \
41 -u "${instsetoo_OUT}" \
42 -packer "${COMPRESSIONTOOL}" \
43 -buildid "${LIBO_VERSION_PATCH}" \
44 ${EXTRA_PARAMS:+$EXTRA_PARAMS} \
45 ${EXTENSION:+"$EXTENSION"} \
46 -format "${PKGFORMAT}" \
47 "${VERBOSITY}"