2010-05-12 10:40:48 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# Build the Pandora Agent installer.
|
|
|
|
# The installer will be placed in ./installer/output/.
|
|
|
|
# InstallJammer must be installed and in the PATH.
|
|
|
|
|
2020-04-22 11:20:38 +02:00
|
|
|
# ARCH may be set by other build scripts.
|
|
|
|
if [ "$ARCH" == "" ]; then
|
|
|
|
ARCH=`uname -m`
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Set the target host.
|
2014-06-17 21:23:15 +02:00
|
|
|
if [ "$ARCH" == "x86_64" ]; then
|
|
|
|
HOST="x86_64-w64-mingw32"
|
|
|
|
else
|
2011-11-15 14:10:24 +01:00
|
|
|
HOST="i686-w64-mingw32"
|
2010-05-19 17:21:10 +02:00
|
|
|
fi
|
|
|
|
|
2020-04-22 11:20:38 +02:00
|
|
|
# Compile and update the Pandora FMS Agent binary.
|
2014-05-29 13:35:41 +02:00
|
|
|
./autogen.sh && ./configure --host=$HOST && make clean && make && cp PandoraAgent.exe bin/
|
2010-05-12 10:40:48 +02:00
|
|
|
|