From d88e3b885d782aa3d0df4b46037aeedbd3cd8933 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Tue, 21 Feb 2012 14:35:48 +0000 Subject: [PATCH] 2012-02-21 Ramon Novoa * 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 --- extras/ChangeLog | 4 ++++ extras/pandora_update_version.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/extras/ChangeLog b/extras/ChangeLog index 4ed13e4089..5c8bbf0959 100644 --- a/extras/ChangeLog +++ b/extras/ChangeLog @@ -1,3 +1,7 @@ +2012-02-21 Ramon Novoa + + * pandora_update_version.sh: Update agent version in versioninfo.rc. + 2011-12-21 Ramon Novoa * build_vars.sh: Added to repository. Defines environment variables diff --git a/extras/pandora_update_version.sh b/extras/pandora_update_version.sh index 6df7966d1c..23be6cb955 100755 --- a/extras/pandora_update_version.sh +++ b/extras/pandora_update_version.sh @@ -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"