2012-02-21 Ramon Novoa <rnovoa@artica.es>

* pandora_update_version.sh: Update agent version in versioninfo.rc.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5628 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2012-02-21 14:35:48 +00:00
parent f2ad2b5ed0
commit d88e3b885d
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-02-21 Ramon Novoa <rnovoa@artica.es>
* pandora_update_version.sh: Update agent version in versioninfo.rc.
2011-12-21 Ramon Novoa <rnovoa@artica.es>
* build_vars.sh: Added to repository. Defines environment variables

View File

@ -45,6 +45,7 @@ CONSOLE_INSTALL_FILE="$CODEHOME/pandora_console/install.php"
AGENT_UNIX_FILE="$CODEHOME/pandora_agents/unix/pandora_agent"
AGENT_WIN_FILE="$CODEHOME/pandora_agents/win32/pandora.cc"
AGENT_WIN_MPI_FILE="$CODEHOME/pandora_agents/win32/installer/pandora.mpi"
AGENT_WIN_RC_FILE="$CODEHOME/pandora_agents/win32/versioninfo.rc"
# Update version in spec files
function update_spec_version {
@ -120,6 +121,7 @@ if [ $NB == 1 ]; then
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
sed -e "s/\s*VALUE \"ProductVersion\".*/ VALUE \"ProductVersion\", \"($VERSION(Build $BUILD))\"/" "$AGENT_WIN_RC_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_RC_FILE"
rm -f "$TEMP_FILE"