Skip to content

Commit

Permalink
Add build scripts to function with the RISC OS build system.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gerph committed Dec 12, 2022
1 parent b0f1bc2 commit 9a15e72
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .robuild.yaml
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
12 changes: 12 additions & 0 deletions src/MkROBuild,feb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
| Build on the RISC OS Build service

Dir <Obey$Dir>
cdir ^.Artifacts
cdir ^.Artifacts.Library
cdir ^.Artifacts.Library.Internet
amu -f MakeFileROBuild install INSTDIR=^.Artifacts.Library.Internet
if "<Sys$ReturnCode>" <> 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
3 changes: 3 additions & 0 deletions src/Resources/UK/Help
Original file line number Diff line number Diff line change
@@ -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 <mac address> [ -b <broadcast address> ] [-v]

0 comments on commit 9a15e72

Please sign in to comment.