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:
parent
218393044b
commit
9318a9e784
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue