Commit 8a6bcc14 authored by Steve Revill's avatar Steve Revill
Browse files

Can pass answers to prompts as params. Means can be run from a script.

E.g. Run Prepare.!Run y y n

Version 0.02. Tagged as 'Prepare-0_02'
parent 114bd3ea
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
| |
Set ROOLMerge$Dir <Obey$Dir> Set ROOLMerge$Dir <Obey$Dir>
Set ROOLMerge$Path <ROOLMerge$Dir>.^. Set ROOLMerge$Path <ROOLMerge$Dir>.^.
TaskWindow "Run <ROOLMerge$Dir>.Prepare" -wimpslot 1024K -name "Build environment setup" -display -quit TaskWindow "Run <ROOLMerge$Dir>.Prepare %*0" -wimpslot 1024K -name "Build environment setup" -display -quit
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,11 @@ ...@@ -2,8 +2,11 @@
| Copyright 2011, RISC OS Open Ltd. | Copyright 2011, RISC OS Open Ltd.
| All rights reserved. | All rights reserved.
| |
Set ROOLMerge$Q1 "%0"
Set ROOLMerge$Q2 "%1"
Set ROOLMerge$Q3 "%2"
|Print <ROOLMerge$Dir>.Resources.UK.Intro |Print <ROOLMerge$Dir>.Resources.UK.Intro
|Run <ROOLMerge$Dir>.Resources.Query |If "<ROOLMerge$Q1>" = "" Then Run <ROOLMerge$Dir>.Resources.Query Else SetEval ROOLMerge$Query -("<ROOLMerge$Q1>"="y")
|If ROOLMerge$Query = 0 Then Echo Preparation cancelled. You may close this window now. |If ROOLMerge$Query = 0 Then Echo Preparation cancelled. You may close this window now.
|If ROOLMerge$Query = 0 Then Obey |If ROOLMerge$Query = 0 Then Obey
|Echo |Echo
...@@ -27,12 +30,12 @@ ...@@ -27,12 +30,12 @@
Print <ROOLMerge$Dir>.Resources.UK.Tools1 Print <ROOLMerge$Dir>.Resources.UK.Tools1
If "<SetPaths32$Dir>" = "" Then Echo WARNING: It doesn't look like the filer has 'seen' your C/C++ installation yet. If "<SetPaths32$Dir>" = "" Then Echo WARNING: It doesn't look like the filer has 'seen' your C/C++ installation yet.
Print <ROOLMerge$Dir>.Resources.UK.Tools2 Print <ROOLMerge$Dir>.Resources.UK.Tools2
Run <ROOLMerge$Dir>.Resources.Query If "<ROOLMerge$Q2>" = "" Then Run <ROOLMerge$Dir>.Resources.Query Else SetEval ROOLMerge$Query -("<ROOLMerge$Q2>"="y")
If ROOLMerge$Query = 0 Then Echo Build tools not installed. You may close this window now. If ROOLMerge$Query = 0 Then Echo Build tools not installed. You may close this window now.
If ROOLMerge$Query = 0 Then Obey If ROOLMerge$Query = 0 Then Obey
Obey <ROOLMerge$Dir>.^.^.Library.InstallTools Obey <ROOLMerge$Dir>.^.^.Library.InstallTools
Print <ROOLMerge$Dir>.Resources.UK.Finish Print <ROOLMerge$Dir>.Resources.UK.Finish
Run <ROOLMerge$Dir>.Resources.Query If "<ROOLMerge$Q3>" = "" Then Run <ROOLMerge$Dir>.Resources.Query Else SetEval ROOLMerge$Query -("<ROOLMerge$Q3>"="y")
RMEnsure UtilityModule 4.00 SetEval ROOLMerge$Query <ROOLMerge$Query> * 2 RMEnsure UtilityModule 4.00 SetEval ROOLMerge$Query <ROOLMerge$Query> * 2
If ROOLMerge$Query = 1 Then StartDesktopTask Run <ROOLMerge$Dir>.^.!Builder.!Run If ROOLMerge$Query = 1 Then StartDesktopTask Run <ROOLMerge$Dir>.^.!Builder.!Run
If ROOLMerge$Query = 2 Then Filer_Run <ROOLMerge$Dir>.^.!Builder.!Run If ROOLMerge$Query = 2 Then Filer_Run <ROOLMerge$Dir>.^.!Builder.!Run
......
/* (0.01) /* (0.02)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1. * Last processed by srccommit version: 1.1.
* *
*/ */
#define Module_MajorVersion_CMHG 0.01 #define Module_MajorVersion_CMHG 0.02
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 17 Mar 2011 #define Module_Date_CMHG 19 Mar 2011
#define Module_MajorVersion "0.01" #define Module_MajorVersion "0.02"
#define Module_Version 1 #define Module_Version 2
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "17 Mar 2011" #define Module_Date "19 Mar 2011"
#define Module_ApplicationDate "17-Mar-11" #define Module_ApplicationDate "19-Mar-11"
#define Module_ComponentName "Prepare" #define Module_ComponentName "Prepare"
#define Module_ComponentPath "Prepare" #define Module_ComponentPath "Prepare"
#define Module_FullVersion "0.01" #define Module_FullVersion "0.02"
#define Module_HelpVersion "0.01 (17 Mar 2011)" #define Module_HelpVersion "0.02 (19 Mar 2011)"
#define Module_LibraryVersionInfo "0:1" #define Module_LibraryVersionInfo "0:2"
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