-
Notifications
You must be signed in to change notification settings - Fork 5
/
build5
executable file
·32 lines (26 loc) · 856 Bytes
/
build5
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
#!/bin/bash
# This script can be called from anywhere.
MYBASENAME=`perl -MCwd -e 'print Cwd::abs_path shift' "$0"`
MYPATH=`dirname "$MYBASENAME"`
. helper/common
. helper/update
if [ "$OS_VARIANT" = Windows ]; then
export TERM=dumb # ...otherwise Gradle produces garbled output
fi
# Compile GeoGebra
rm -f desktop/build/*.dll # On Windows some cleanup is forced
./gradlew $GRADLE_OPTIONS :desktop:installDist
cd ../..
# Compile RealGeom:
cd realgeom
./gradlew $GRADLE_OPTIONS installDist
LIBDIR=lib
if [ "$OS_VARIANT" = Raspbian ]; then
# FIXME: This is hardcoded.
LIBDIR=/opt/Wolfram/WolframEngine/13.1/SystemFiles/Links/JLink/SystemFiles/Libraries/Linux-ARM
fi
cp $LIBDIR/*.so build/install/realgeom/lib
cd ..
if [ "$OS_VARIANT" = Raspbian ]; then
rm fork/geogebra/desktop/build/install/desktop/lib/*{amd64,windows,i586,mac}*.jar || true
fi