From 9a15e7293985d19f5ac9c249f6fa11264aa26d80 Mon Sep 17 00:00:00 2001 From: Charles Ferguson Date: Mon, 12 Dec 2022 01:05:33 +0000 Subject: [PATCH] Add build scripts to function with the RISC OS build system. The RISC OS build system can build most things, given a suitable set of scripts. Here we invoke the 'MkROBuild' command which will build things using the toolchain on the RISC OS build system. The artifacts generated are in the usual format, allowing users to copy the tool into their library as they see fit. --- .robuild.yaml | 33 +++++++++++++++++++ ...kefileNorcroft,fe1 => MakefileROBuild,fe1} | 0 src/MkROBuild,feb | 12 +++++++ src/Resources/UK/Help | 3 ++ 4 files changed, 48 insertions(+) create mode 100644 .robuild.yaml rename src/{MakefileNorcroft,fe1 => MakefileROBuild,fe1} (100%) create mode 100644 src/MkROBuild,feb create mode 100644 src/Resources/UK/Help diff --git a/.robuild.yaml b/.robuild.yaml new file mode 100644 index 0000000..da0d053 --- /dev/null +++ b/.robuild.yaml @@ -0,0 +1,33 @@ +%YAML 1.0 +--- + +# RISC OS Build service build file +# How to build manually on a non-RISC OS system: +# rm -f /tmp/source-archive.zip ; zip -9r /tmp/source-archive.zip .robuild.yaml src LICENSE ; riscos-build-online -i /tmp/source-archive.zip -o /tmp/built and unzip -l /tmp/built,a91 + +# Defines a list of jobs which will be performed. +# Only 1 job will currently be executed. +jobs: + build: + # Env defines system variables which will be used within the environment. + # Multiple variables may be assigned. + env: + "Sys$Environment": ROBuild + "BUILD32": 1 + "Locale": UK + + # Directory to change to before running script + dir: src + + # Commands which should be executed to perform the build. + # The build will terminate if any command returns a non-0 return code or an error. + script: + - /MkROBuild + + # Outputs from the build are defined in artifacts + # These are a list of artifacts to report directories or files. + # Only a single item is currently supported. + artifacts: + # Each element of the artifacts should have a path key, which gives the file or + # directory to return. + - path: Artifacts diff --git a/src/MakefileNorcroft,fe1 b/src/MakefileROBuild,fe1 similarity index 100% rename from src/MakefileNorcroft,fe1 rename to src/MakefileROBuild,fe1 diff --git a/src/MkROBuild,feb b/src/MkROBuild,feb new file mode 100644 index 0000000..4fec908 --- /dev/null +++ b/src/MkROBuild,feb @@ -0,0 +1,12 @@ +| Build on the RISC OS Build service + +Dir +cdir ^.Artifacts +cdir ^.Artifacts.Library +cdir ^.Artifacts.Library.Internet +amu -f MakeFileROBuild install INSTDIR=^.Artifacts.Library.Internet +if "" <> 0 Then Error Failed to build + +| Two LICENSE files are present, so must be supplied to the user. +copy LICENSE ^.Artifacts.LICENSE/1 ~CVF +copy ^.LICENSE ^.Artifacts.LICENSE/2 ~CVF diff --git a/src/Resources/UK/Help b/src/Resources/UK/Help new file mode 100644 index 0000000..5e69976 --- /dev/null +++ b/src/Resources/UK/Help @@ -0,0 +1,3 @@ +WakeOnLAN {Module_FullVersionAndDate} +*WakeOnLAN is used to send a magic network packet to a machine to cause it to wake up. The remote machine must be configured to accept such network packets. +Syntax: *WakeOnLAN -m [ -b ] [-v]