Commit c181e52d authored by Ben Avison's avatar Ben Avison
Browse files

ChangeFSI changes

Detail:
  Main ChangeFSI program changed to assemble new instructions on ROL OS
  versions without "No such mnemonic" error. Also changed to handle
  _Version: token in messages file.

  Added "stripdepnd Makefile" to !MkClean.

  Makefile locks destination !Sprites and !Sprites22 files, because
  everything else is being locked.

  Makefile altered to use new centalised awkscript to keep version numbers
  updated. (Note that ChangeFSI has a slightly odd makefile, so this
  shouldn't be used as an example of how to modify Makefiles to use the new
  awk version script.)

  Window menu fixed to be style guide compliant.
Admin:
  Requires Library 1.32
  Tested on RiscPC RO402
Notes:
  Changes by James Lampard.

Version 1.28. Tagged as 'ChangeFSI-1_28'
parent 327d0ecf
......@@ -14,3 +14,4 @@
|
Dir <Obey$Dir>
amu_machine clean
stripdepnd Makefile
awk/** gitlab-language=awk linguist-language=awk linguist-detectable=true
*,ffb gitlab-language=bbcbasic linguist-language=bbcbasic linguist-detectable=true
c/** gitlab-language=c linguist-language=c linguist-detectable=true
**/c/** gitlab-language=c linguist-language=c linguist-detectable=true
......
......@@ -28,6 +28,7 @@
# 03-Nov-02 RPS Messages generated by awk script from VersionNum file
# 11-Nov-02 RPS Adds hpcdtoppm generated from source
# 09-Jan-03 RPS Adds btpc generated from source
# 17-Oct-08 JDL Use shared awk script for version number copying
#
#
......@@ -40,11 +41,14 @@ LDIR = ${LOCALE}
SDIR = source
CFSIDIR = ${INSTDIR}.${APP}
VPATH = @ JPEG6b hpcdtoppm btpc
MSGVERSION = ${AWK} -f Build:AwkVers
MSGS = ${DDIR}.Messages
#
# Tools:
#
MKDIR = do mkdir -p
AWK = GNU.gawk
CC = cc
C++ = c++
CP = copy
......@@ -95,7 +99,7 @@ FILES =\
$(DDIR).hpcdtoppm\
$(LDIR).Template3D\
$(LDIR).Templates\
$(DDIR).Messages\
${MSGS} \
$(DDIR).djpeg.djpeg\
$(DDIR).djpeg.HourOn\
$(DDIR).djpeg.HourOff\
......@@ -223,8 +227,8 @@ install: $(FILES)
CPFDL $(LDIR) !Help
CPFDL $(LDIR) !Run
CPFDL $(DDIR) !Boot
CPFD $(LDIR) !Sprites
CPFD $(LDIR) !Sprites22
CPFDL $(LDIR) !Sprites
CPFDL $(LDIR) !Sprites22
$(MKDIR) $(CFSIDIR).Documents
CPFDL $(DDIR) Documents.256sprites
CPFDL $(DDIR) Documents.CmdBasUse
......@@ -274,7 +278,7 @@ clean:
$(RM) CJpeg
$(RM) DJpeg
$(RM) $(DDIR).hpcdtoppm
${RM} $(DDIR).Messages
${RM} ${MSGS}
${WIPE} o.* ${WFLAGS}
@echo $(COMPONENT): cleaned
......@@ -319,7 +323,7 @@ $(DDIR).btpc.btpc: ${BOBJS} ${C++LIB} ${CLIB}
#------------------------------------------------------------------------------
# MESSAGES
#------------------------------------------------------------------------------
$(DDIR).Messages: ${LDIR}.Messages awk.Version
gnu.gawk -f awk.Version ${LDIR}.Messages > $(DDIR).Messages
${MSGS}: ${LDIR}.Messages VersionNum
${MSGVERSION} ${LDIR}.Messages > $@
# Dynamic dependencies:
!ChangeFSI
==========
ChangeFSI
=========
ChangeFSI is a useful program for converting and displaying image files of
various formats. These images can then be converted into sprites or JPEGs
......
......@@ -19,7 +19,7 @@ Scale to fill
by
Range not used
ChangeFSI
FSIId:Substituted at build time
_Version:Substituted at build time
Incorrect value for
in
dialogue box.
......
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "1.27"
Module_Version SETA 127
Module_MajorVersion SETS "1.28"
Module_Version SETA 128
Module_MinorVersion SETS ""
Module_Date SETS "17 Oct 2008"
Module_ApplicationDate SETS "17-Oct-08"
Module_Date SETS "07 Jun 2009"
Module_ApplicationDate SETS "07-Jun-09"
Module_ComponentName SETS "ChangeFSI"
Module_ComponentPath SETS "mixed/RiscOS/Sources/Apps/ChangeFSI"
Module_FullVersion SETS "1.27"
Module_HelpVersion SETS "1.27 (17 Oct 2008)"
Module_FullVersion SETS "1.28"
Module_HelpVersion SETS "1.28 (07 Jun 2009)"
END
/* (1.27)
/* (1.28)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.27
#define Module_MajorVersion_CMHG 1.28
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 17 Oct 2008
#define Module_Date_CMHG 07 Jun 2009
#define Module_MajorVersion "1.27"
#define Module_Version 127
#define Module_MajorVersion "1.28"
#define Module_Version 128
#define Module_MinorVersion ""
#define Module_Date "17 Oct 2008"
#define Module_Date "07 Jun 2009"
#define Module_ApplicationDate "17-Oct-08"
#define Module_ApplicationDate "07-Jun-09"
#define Module_ComponentName "ChangeFSI"
#define Module_ComponentPath "mixed/RiscOS/Sources/Apps/ChangeFSI"
#define Module_FullVersion "1.27"
#define Module_HelpVersion "1.27 (17 Oct 2008)"
#define Module_LibraryVersionInfo "1:27"
#define Module_FullVersion "1.28"
#define Module_HelpVersion "1.28 (07 Jun 2009)"
#define Module_LibraryVersionInfo "1:28"
# Generate a messages file from the info in the VersionNum file
#
BEGIN {
while (getline < "VersionNum" > 0) {
split($0, Version);
if (Version[1] == "#define") {
if (Version[2] == "Module_ApplicationDate") {
Date = substr(Version[3], 2, length(Version[3]) -2 );
}
if (Version[2] == "Module_MajorVersion_CMHG") {
VString = Version[3];
}
}
}
}
/^FSIId/ { printf("%s (%s)\n", VString, Date); done = 1; next; }
{ print }
END {
if (!done) {
printf("%s (%s)\n", VString, Date);
}
}
No preview for this file type
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