2010-11-03 Ramon Novoa <rnovoa@artica.es>
* pandora_update_version.sh: Set the build in the InstallJammer mpi file. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3511 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2ded23a694
commit
9bca00c3d9
|
@ -1,3 +1,8 @@
|
|||
2010-11-03 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* pandora_update_version.sh: Set the build in the InstallJammer mpi
|
||||
file.
|
||||
|
||||
2010-11-03 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* pandora_update_version.sh: Fixed the regular expression that matches
|
||||
|
|
|
@ -99,7 +99,8 @@ echo "Updating Pandora Windows Agent version..."
|
|||
sed -e "s/\s*#define\s*PANDORA_VERSION\s*.*/#define PANDORA_VERSION (\"$VERSION(Build $BUILD)\")/" "$AGENT_WIN_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_FILE"
|
||||
sed -e "s/{Pandora FMS Windows Agent v.*}/{Pandora FMS Windows Agent v$VERSION}/" "$AGENT_WIN_MPI_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_MPI_FILE"
|
||||
NUMERIC_VERSION=$(echo $VERSION | sed -e "s/\([0-9]*\.[0-9]*\).*/\1/")
|
||||
sed -n "1h;1!H;\${;g;s/InstallVersion[\r\n]{\S*}/InstallVersion\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]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"
|
||||
|
||||
rm -f "$TEMP_FILE"
|
||||
|
||||
|
|
Loading…
Reference in New Issue