File: odk-build-examples-java

package info (click to toggle)
libreoffice 1%3A7.0.4-4%2Bdeb11u10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,255,188 kB
  • sloc: cpp: 4,130,031; xml: 364,887; java: 276,583; python: 65,680; ansic: 36,276; perl: 32,034; javascript: 16,964; yacc: 10,836; sh: 10,721; makefile: 9,112; cs: 6,600; objc: 1,972; lex: 1,887; awk: 1,002; pascal: 940; asm: 928; php: 79; csh: 20; sed: 5
file content (47 lines) | stat: -rwxr-xr-x 1,107 bytes parent folder | download
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
#!/bin/bash
# autopkgtest check: Run the odk/build-examples check against an installed
# version of the LibreOffice SDK
# (c) 2017 Software in the Public Interest, Inc.
# Authors: Rene Engelhard <rene@debian.org>

set -e
set -E

# skip on Zero using architectures
if java -version 2>&1 | grep -q Zero; then
        echo "Zero-using architecture. Skipping."
        exit 77
fi

SRCDIR=`pwd`
CHECK_PARALLELISM=1

function unapply() {
	cd $SRCDIR
	echo
	echo "====== Unapplying the patch ======"
	patch -p1 -R < ./debian/tests/patches/odk-build-examples-standalone.diff
}

trap "unapply" ERR

echo
echo "====== Patching the tree to build the odk build-examples test against an existing installation ======"
patch -p1 < ./debian/tests/patches/odk-build-examples-standalone.diff

echo
echo "====== Generating configuration ======="
rm -f config_host.mk
./debian/rules config_host.mk

echo
echo "====== Starting build with ${CHECK_PARALLELISM} job against /usr/lib/libreoffice/sdk ======"

cd $SRCDIR/odk

export PARALLELISM=$CHECK_PARALLELISM
make -rk \
	CustomTarget_odk/build-examples_java verbose=t

unapply