2010-12-21 13:14:15 +01:00
|
|
|
#!/bin/bash
|
|
|
|
CODEHOME=~/code/pandora/trunk
|
|
|
|
RPMHOME=/usr/src/packages
|
|
|
|
|
2010-12-23 13:34:02 +01:00
|
|
|
if [ ! -d $RPMHOME/EXE ]; then
|
|
|
|
mkdir -p $RPMHOME/EXE || exit 1
|
|
|
|
fi
|
2010-12-21 13:14:15 +01:00
|
|
|
|
|
|
|
echo "Creating Pandora FMS Agent Windows installer in $RPMHOME/EXE"
|
2010-12-23 13:34:02 +01:00
|
|
|
|
|
|
|
# Windows agent
|
2010-12-21 13:14:15 +01:00
|
|
|
rm -rf $CODEHOME/pandora_agents/win32/installer/output/*.exe
|
|
|
|
cd $CODEHOME/pandora_agents/win32
|
|
|
|
./build.sh
|
|
|
|
cp $CODEHOME/pandora_agents/win32/installer/output/*.exe $RPMHOME/EXE/
|
|
|
|
|