Commit cc3ca9d8 authored by Robert Sprowson's avatar Robert Sprowson

Get the version string for info box from messages

Version 3.22. Tagged as 'Help2-3_22'
parent 70a2a9bf
......@@ -94,7 +94,7 @@ install: ${FILES}
${CP} ${LDIR}.!Help ${INSTDIR}.${APP}.!Help ${CPFLAGS}
${CP} ${RDIR}.!Run ${INSTDIR}.${APP}.!Run ${CPFLAGS}
${CP} ${RDIR}.!RunImage ${INSTDIR}.${APP}.!RunImage ${CPFLAGS}
${CP} ${LDIR}.Messages ${INSTDIR}.${APP}.Messages ${CPFLAGS}
${INSERTVERSION} ${LDIR}.Messages > ${INSTDIR}.${APP}.Messages
${CP} ${LDIR}.Res ${INSTDIR}.${APP}.Res ${CPFLAGS}
${CP} ${RDIR}.!Sprites ${INSTDIR}.${APP}.!Sprites ${CPFLAGS}
${CP} ${RDIR}.!Sprites22 ${INSTDIR}.${APP}.!Sprites22 ${CPFLAGS}
......@@ -108,7 +108,7 @@ resources:
${CP} ${RDIR}.ROM.!Run ${RESAPP}.!Run ${CPFLAGS}
${CP} ${RDIR}.ROM.!Boot ${RESAPP}.!Boot ${CPFLAGS}
${CP} ${LDIR}.Res ${RESDIR}.Res ${CPFLAGS}
${CP} ${LDIR}.Messages ${RESDIR}.Messages ${CPFLAGS}
${INSERTVERSION} ${LDIR}.Messages > ${RESDIR}.Messages
@${ECHO} ${COMPONENT}: resource files copied to Messages module
clean:
......
# Messages file for !Help
_TaskName:Help
_Version:From build system
# Standard miscellaneous messages
reportt:Message from Help
......
/* (3.21)
/* (3.22)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 3.21
#define Module_MajorVersion_CMHG 3.22
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 29 Jun 2014
#define Module_Date_CMHG 23 Jul 2014
#define Module_MajorVersion "3.21"
#define Module_Version 321
#define Module_MajorVersion "3.22"
#define Module_Version 322
#define Module_MinorVersion ""
#define Module_Date "29 Jun 2014"
#define Module_Date "23 Jul 2014"
#define Module_ApplicationDate "29-Jun-14"
#define Module_ApplicationDate "23-Jul-14"
#define Module_ComponentName "Help2"
#define Module_ComponentPath "castle/RiscOS/Sources/Apps/Help2"
#define Module_FullVersion "3.21"
#define Module_HelpVersion "3.21 (29 Jun 2014)"
#define Module_LibraryVersionInfo "3:21"
#define Module_FullVersion "3.22"
#define Module_HelpVersion "3.22 (23 Jul 2014)"
#define Module_LibraryVersionInfo "3:22"
......@@ -41,7 +41,6 @@
#include "help.h"
#include "common.h"
#include "defines.h"
#include "VersionNum"
/* Toolbox/WIMP globals */
static MessagesFD messages_desc; /* Messagetrans */
......@@ -787,7 +786,7 @@ static void initialise_toolbox_objects(void)
error_trap(event_register_toolbox_handler(iconbar_id, Iconbar_Clicked, iconbar_click, NULL), 0);
/* Set program version */
error_trap(proginfo_set_version(0, proginfo_id, Version), 0);
error_trap(proginfo_set_version(0, proginfo_id, messages_lookup("_Version")), 0);
}
......
......@@ -16,9 +16,6 @@
/* File: defines.h */
/*---------------------------------------------------------------------------*/
/* Current version */
#define Version Module_MajorVersion " (" Module_ApplicationDate ")"
/* Compile with support for Choices file? */
#define UseChoicesFile 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment