Author: ardovm
Date: Sat Jun 19 19:39:47 2021
New Revision: 1890921
URL: http://svn.apache.org/viewvc?rev=1890921&view=rev
Log:
Build script for 4.2.0-Dev3 on openSUSE Leap 15.2
It is based on the Centos7 script with some improvements: languages and
debug information can be requested from the command line.
Comments are welcome; if these additions are handy, they could be merged
into the other scripts.
Added:
openoffice/devtools/build-scripts/4.2.0-Dev3/unxlngix6/build_aoo64bit_on_opensuseleap15.sh
(with props)
Added:
openoffice/devtools/build-scripts/4.2.0-Dev3/unxlngix6/build_aoo64bit_on_opensuseleap15.sh
URL:
http://svn.apache.org/viewvc/openoffice/devtools/build-scripts/4.2.0-Dev3/unxlngix6/build_aoo64bit_on_opensuseleap15.sh?rev=1890921&view=auto
==============================================================================
---
openoffice/devtools/build-scripts/4.2.0-Dev3/unxlngix6/build_aoo64bit_on_opensuseleap15.sh
(added)
+++
openoffice/devtools/build-scripts/4.2.0-Dev3/unxlngix6/build_aoo64bit_on_opensuseleap15.sh
Sat Jun 19 19:39:47 2021
@@ -0,0 +1,124 @@
+#!/usr/bin/env bash
+#
+# Installed in /usr/local:
+# o dmake 4.13.1
(https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz)
+# o epm 5.0.0 (https://github.com/jimjag/epm/archive/v5.0.0/epm-5.0.0.tar.gz)
+
+set -eo pipefail
+
+date > config.out
+echo "Invocation:" >> config.out
+echo "$ $0 $@" >> config.out
+echo >> config.out
+
+#
+# Parse options
+#
+AOO_SKIP_CONFIG=
+AOO_JUST_CONFIG=
+AOO_VERBOSE_BUILD=
+AOO_BUILD_TYPE=
+AOO_BUILD_VERSION=
+AOO_BUILD_BETA=
+AOO_BUILD_DEV=
+AOO_BUILD_SRC=
+AOO_DEBUG=
+AOO_LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es et eu fi fr gd gl
he hi hu hy it ja kab km ko lt nb nl om pl pt pt-BR ru sk sl sr sv ta th tr uk
vi zh-CN zh-TW"
+AOO_PACKAGE_FORMAT="deb rpm"
+
+while true; do
+ case "$1" in
+ "--verbose" ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;;
+ "--skip-config" ) AOO_SKIP_CONFIG="yes"; shift ;;
+ "--just-config" ) AOO_JUST_CONFIG="yes"; shift ;;
+ "--build-src" ) AOO_BUILD_SRC="yes"; shift ;;
+ "--dev" ) AOO_BUILD_TYPE="Apache OpenOffice Test Development
Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes";
AOO_BUILD_BETA=""; shift ;;
+ "--beta" ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build";
AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes";
AOO_BUILD_DEV=""; shift ;;
+ "--langs" ) shift ; AOO_LANGS="$1"; shift ;;
+ "--debug" ) AOO_DEBUG="--enable-debug"; shift ;;
+ "--package-format" ) shift; AOO_PACKAGE_FORMAT="$1"; shift ;;
+ "--" ) shift; break ;;
+ "" ) break ;;
+ * ) echo "unknown option: $1"; exit 1 ;;
+ esac
+done
+
+if [ ! -d ../main -o ! -d sal ] ; then
+ echo "CHDIR into AOO's main/ directory first!"
+ exit 1
+fi
+\rm -f solenv/inc/reporevision.lst
+if [ ! -e external/unowinreg/unowinreg.dll ] ; then
+ echo "Downloading unowinreg.dll..."
+ wget -O external/unowinreg/unowinreg.dll
http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll
+fi
+
+if [ -e configure.in ]; then
+ AOO_CONF_T="configure.in"
+else
+ AOO_CONF_T="configure.ac"
+fi
+if [ ! -e configure -o $AOO_CONF_T -nt configure ] ; then
+ echo "Running autoconf..."
+ autoconf || exit 1
+fi
+
+if [ "$AOO_SKIP_CONFIG" != "yes" ]; then
+ if [ -e /usr/local/bin/epm ]; then
+ epm_param="--with-epm=/usr/local/bin/epm"
+ else
+
epm_param="--with-epm-url=https://github.com/jimjag/epm/archive/v5.0.0/epm-5.0.0.tar.gz"
+ fi
+ if [ -e /usr/local/bin/dmake ]; then
+ dmake_param="--with-dmake-path=/usr/local/bin/dmake"
+ else
+
dmake_param="--with-dmake-url=https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz"
+ fi
+ ( ./configure \
+ --with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") -
`uname -sm`${AOO_BUILD_VERSION}" \
+ ${AOO_VERBOSE_BUILD} \
+ --with-system-stdlibs \
+ --enable-crashdump=yes \
+ --enable-category-b \
+ --enable-beanshell \
+ --enable-wiki-publisher \
+ --enable-bundled-dictionaries \
+ --enable-opengl \
+ --enable-dbus \
+ --enable-gstreamer \
+ --without-junit \
+ --without-stlport \
+ --with-ant-home=$ANT_HOME \
+ --with-jdk-home=/usr/lib64/jvm/java-1.8.0-openjdk \
+ --with-package-format="$AOO_PACKAGE_FORMAT" \
+ --with-lang="${AOO_LANGS}" \
+ $AOO_DEBUG \
+ $epm_param \
+ $dmake_param \
+ | tee -a config.out ) || exit 1
+fi
+
+source ./LinuxX86-64Env.Set.sh || exit 1
+./bootstrap || exit 1
+\rm -f solenv/inc/reporevision.lst
+cd instsetoo_native
+time perl "$SOLARENV/bin/build.pl" --all -- -P7 || exit 1
+cd util
+if [ "$AOO_BUILD_BETA" = "yes" ]; then
+ dmake -P7 openofficebeta || exit 1
+ dmake -P7 sdkoobeta_en-US || exit 1
+ dmake -P7 ooobetalanguagepack || exit 1
+elif [ "$AOO_BUILD_DEV" = "yes" ]; then
+ dmake -P7 openofficedev || exit 1
+ dmake -P7 sdkoodev_en-US || exit 1
+ dmake -P7 ooodevlanguagepack || exit 1
+else
+ dmake -P7 ooolanguagepack || exit 1
+ dmake -P7 sdkoo_en-US || exit 1
+fi
+if [ "$AOO_BUILD_SRC" = "yes" ]; then
+ dmake aoo_srcrelease || exit 1
+fi
+
+date "+Build ended at %H:%M:%S"
+
Propchange:
openoffice/devtools/build-scripts/4.2.0-Dev3/unxlngix6/build_aoo64bit_on_opensuseleap15.sh
------------------------------------------------------------------------------
svn:executable = *