2011-10-27 Ramon Novoa <rnovoa@artica.es>

* pandora_update_version.sh: Include build number in the
	  Windows agent installer for nightly builds.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5092 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-10-27 18:11:02 +00:00
parent 218393044b
commit 9318a9e784
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-10-27 Ramon Novoa <rnovoa@artica.es>
* pandora_update_version.sh: Include build number in the
Windows agent installer for nightly builds.
2011-10-27 Ramon Novoa <rnovoa@artica.es>
* build_src.sh: Create symlinks needed to build RPM packages.

View File

@ -105,6 +105,11 @@ sed -e "s/{Pandora FMS Windows Agent v.*}/{Pandora FMS Windows Agent v$VERSION}/
NUMERIC_VERSION=$(echo $VERSION | sed -e "s/\([0-9]*\.[0-9]*\).*/\1/")
sed -n "1h;1!H;\${;g;s/[\r\n]InstallVersion[\r\n]{\S*}/\nInstallVersion\n{$NUMERIC_VERSION.0.0}/g;p;}" "$AGENT_WIN_MPI_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_MPI_FILE"
sed -n "1h;1!H;\${;g;s/[\r\n]Version[\r\n]{[^\n\r]*}/\nVersion\n{$BUILD}/g;p;}" "$AGENT_WIN_MPI_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_MPI_FILE"
if [ $NB == 1 ]; then
sed -n "1h;1!H;\${;g;s/[\r\n]Windows\,Executable[\r\n]{[^\n\r]*}/\nWindows\,Executable\n{\<\%AppName\%\>\-\<\%Version\%\>\-Setup\<\%Ext\%\>}}/g;p;}" "$AGENT_WIN_MPI_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_MPI_FILE"
else
sed -n "1h;1!H;\${;g;s/[\r\n]Windows\,Executable[\r\n]{[^\n\r]*}/\nWindows\,Executable\n{\<\%AppName\%\>\-Setup\<\%Ext\%\>}}/g;p;}" "$AGENT_WIN_MPI_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_MPI_FILE"
fi
rm -f "$TEMP_FILE"