Commit 5a1e6a4c authored by Steve Revill's avatar Steve Revill
Browse files

Initial import of the !Prepare utility.

parents
LICENSE
Copyright (c) 2011, RISC OS Open Ltd. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE HORDE PROJECT OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE
| >!Run
| Copyright 2011, RISC OS Open Ltd.
| All rights reserved.
|
Set ROOLMerge$Dir <Obey$Dir>
Set ROOLMerge$Path <ROOLMerge$Dir>.^.
TaskWindow "Run <ROOLMerge$Dir>.Prepare" -wimpslot 1024K -name "Build environment setup" -display -quit
\ No newline at end of file
*,ffb gitlab-language=bbcbasic linguist-language=bbcbasic linguist-detectable=true
LICENSE
Copyright (c) 2011, RISC OS Open Ltd. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE HORDE PROJECT OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE
| >PCopy
| Copyright 2011, RISC OS Open Ltd.
| All rights reserved.
|
Echo
Echo %0.%1:
x wipe ROOLMerge:%1 ~cfr~v
Run <ROOLMerge$Dir>.Resources.UpCall6
IfThere ROOLMerge:%0.%1 Then Copy ROOLMerge:%0.%1 ROOLMerge:%1 ~cfr~v Else Echo %0.%1 not found. Ignored.
Run <ROOLMerge$Dir>.Resources.UpCall6
\ No newline at end of file
| >Prepare
| Copyright 2011, RISC OS Open Ltd.
| All rights reserved.
|
|Print <ROOLMerge$Dir>.Resources.UK.Intro
|Run <ROOLMerge$Dir>.Resources.Query
|If ROOLMerge$Query = 0 Then Echo Preparation cancelled. You may close this window now.
|If ROOLMerge$Query = 0 Then Obey
|Echo
|Echo (Re)initialising primary build components...
|Set Alias$ROOLCopy Echo|MEcho %%0.%%1:|Mx wipe ROOLMerge:%%1 ~cfr~v|MRun <ROOLMerge$Dir>.Resources.UpCall6|MCopy ROOLMerge:%%0.%%1 ROOLMerge:%%1 ~cfr~v|MRun <ROOLMerge$Dir>.Resources.UpCall6
|CDir ROOLMerge:Apps
|x Wipe ROOLMerge:Images ~cfr~v
|x Wipe ROOLMerge:Install ~cfr~v
|Run <ROOLMerge$Dir>.PCopy mixed.RiscOS Library
|Run <ROOLMerge$Dir>.PCopy mixed.RiscOS Modules
|Run <ROOLMerge$Dir>.PCopy apache.RiscOS Env
|Run <ROOLMerge$Dir>.PCopy apache.RiscOS BuildSys
|Run <ROOLMerge$Dir>.PCopy apache.RiscOS Export
|Run <ROOLMerge$Dir>.PCopy apache.RiscOS Apps.!Builder
|Run <ROOLMerge$Dir>.PCopy apache.RiscOS Apps.!EraseCVS
|Run <ROOLMerge$Dir>.PCopy apache.RiscOS Apps.!WinEdit
|Run <ROOLMerge$Dir>.PCopy gpl.RiscOS Apps.!Perl
|Run <ROOLMerge$Dir>.PCopy gpl.RiscOS Apps.!gcc2_95_4
|Unset ROOLCopy
|Unset ROOLMerge$Path
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.
Print <ROOLMerge$Dir>.Resources.UK.Tools2
Run <ROOLMerge$Dir>.Resources.Query
If ROOLMerge$Query = 0 Then Echo Build tools not installed. You may close this window now.
If ROOLMerge$Query = 0 Then Obey
Obey <ROOLMerge$Dir>.^.^.Library.InstallTools
Print <ROOLMerge$Dir>.Resources.UK.Finish
Run <ROOLMerge$Dir>.Resources.Query
RMEnsure UtilityModule 4.00 SetEval ROOLMerge$Query <ROOLMerge$Query> * 2
If ROOLMerge$Query = 1 Then StartDesktopTask Run <ROOLMerge$Dir>.^.!Builder.!Run
If ROOLMerge$Query = 2 Then Filer_Run <ROOLMerge$Dir>.^.!Builder.!Run
Echo
Echo You may close this window now.
This build directory has now been prepared for use. You can now load
Apps.!Builder and add this directory to the list of builds that it controls.
"Builder" is a graphical front-end which is used to drive the build process.
You do not need to use it if you do not want to; you can drive the "srcbuild"
(which is the back end for Builder) directly from the command line, or you
can manually build individual components from within their source
directories.
However, before you can build most components, you will need to do the full
export phases from this build tree in order to populate the "Export"
directory with the various shared header files and libraries.
------------------------------------------------------------------------------
Would you like to run Builder now? 
\ No newline at end of file
RISC OS Open. Build Directory Preparation Script.
------------------------------------------------------------------------------
This script will copy certain key components out of various source
directories and into the root of this build. Wherever you run this program
from is assumed to be the root of the build tree.
Warning: if you are running this on a build tree which you have already
prepared (by running this on a previous occasion in this directory) then it
will delete and re-install the following components (assuming @ is this
directory):
- @.Library
- @.Images
- @.Install
- @.Env
- @.BuildSys
- @.Export
- @.Apps.!Builder
- @.Apps.!EraseCVS
- @.Apps.!WinEdit
- @.Apps.!Perl
- @.Apps.!gcc2_95_4
Note: some of these components may not be required by your build so they will
not be present after this program has finished.
------------------------------------------------------------------------------
ARE YOU SURE YOU WANT TO CONTINUE? 
\ No newline at end of file
The main build components in this directory has been prepared. However, some
of the tools are part of a commercial product so they aren't included in the
published sources.
There is a script called "InstallTools" within the build tree which you can
run to install your copy of the official build tools into this directory. It
assumes you already have these tools installed on your system.
\ No newline at end of file
------------------------------------------------------------------------------
Would you like to run the script now? 
\ No newline at end of file
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