Commit c3409cca authored by Steve Revill's avatar Steve Revill
Browse files

Moved the Disc stuff a step closer to doing what I want for autobuilds.

Version 0.27. Tagged as 'ABRelease-0_27'
parent b42f25c5
......@@ -13,14 +13,9 @@
| limitations under the License.
|
| Set up and/or override some system variables
Set ab_local$zip FcoreDisc/zip
Set ab_local$zip HardDisc4/util
| Remove any old crud from our resources directory
x Wipe <ab_res$dir>.zip ~cfr~v
Remove <ab_res$dir>.<ab_local$zip>
Remove <ab_res$dir>.HardDisc4/util
| Empty and remove the RAMFS dynamic area
IfThere RAM:$ Then Else Obey
Repeat Wipe RAM:$ -directories -files -applications ~c~fr~v
ChangeDynamicArea -RamFsSize 0K
\ No newline at end of file
Remove <ab_res$dir>.HardDisc4/util
\ No newline at end of file
||| Create an empty directory to hold the files that will be zipped up
||CDir <ab_res$dir>.zip
||
||| Copy the Castle licence file into the zip directory
||Copy ab_res:Licence_v1/pdf <ab_res$dir>.zip.Licence_v1/pdf ~cf~r~v
||
||| Copy the ReadMe for this build into the zip directory
||Copy ab_res:ReadMe/txt <ab_res$dir>.zip.ReadMe/txt ~cf~r~v
||
||| Create a RAM disc with a decent amount of free space
||ChangeDynamicArea -RamFsSize 50M
||
||| Copy the results of the Disc build process into the RAM disc
||Copy <Build$Dir>.Install.HardDisc4 RAM:$ ~cfr~v
||
||| Fill the empty space in the RAM disc with a load of zeros
||Run <ab_res$dir>.ZeroFill
||Remove RAM:$.zeros
||
||| Save the RAMFS dynamic area to a file (a Filecore disc image)
||Run <ab_res$dir>.SaveRAMFS <ab_res$dir>.zip.FcoreDisc
||
||| Set the zip directory as the current directory
||Dir <ab_res$dir>.zip
||
||| Create a zip archive with the required files in it
||Do zip -9qr ^.<ab_local$zip> *
||
||| Return the CSD to its original state
||Back
||
||| Delete any pre-existing zip archive on the autobuild server
||Remove <ab_zip$file>
||
||| Copy the template zip archive onto the autobuild server
||SetType <ab_res$dir>.<ab_local$zip> &A91
||Copy <ab_res$dir>.<ab_local$zip> <ab_zip$file> ~cfr~v
||Access <ab_zip$file> rw/r
......@@ -18,44 +18,6 @@ IfThere <Build$Dir>.Install.HardDisc4 Then Else Obey
| Run our clean script
Run <ab_res$dir>.clean
| Create an empty directory to hold the files that will be zipped up
CDir <ab_res$dir>.zip
| Copy the Castle licence file into the zip directory
Copy ab_res:Licence_v1/pdf <ab_res$dir>.zip.Licence_v1/pdf ~cf~r~v
| Copy the ReadMe for this build into the zip directory
Copy ab_res:ReadMe/txt <ab_res$dir>.zip.ReadMe/txt ~cf~r~v
| Create a RAM disc with a decent amount of free space
ChangeDynamicArea -RamFsSize 50M
| Copy the results of the Disc build process into the RAM disc
Copy <Build$Dir>.Install.HardDisc4 RAM:$ ~cfr~v
| Fill the empty space in the RAM disc with a load of zeros
Run <ab_res$dir>.ZeroFill
Remove RAM:$.zeros
| Save the RAMFS dynamic area to a file (a Filecore disc image)
Run <ab_res$dir>.SaveRAMFS <ab_res$dir>.zip.FcoreDisc
| Create the self-extracting version of the HardDisc4 image
CreateSEC <Build$Dir>.Install.HardDisc4 <ab_res$dir>.HardDisc4/util
| Set the zip directory as the current directory
Dir <ab_res$dir>.zip
| Create a zip archive with the required files in it
Do zip -9qr ^.<ab_local$zip> *
| Return the CSD to its original state
Back
| Delete any pre-existing zip archive on the autobuild server
Remove <ab_zip$file>
| Copy the template zip archive onto the autobuild server
SetType <ab_res$dir>.<ab_local$zip> &A91
Copy <ab_res$dir>.<ab_local$zip> <ab_zip$file> ~cfr~v
Access <ab_zip$file> rw/r
\ No newline at end of file
StartDesktopTask CreateSEC <Build$Dir>.Install.HardDisc4 <ab_res$dir>.<ab_local$zip>
Access <ab_res$dir>.<ab_local$zip> rw/r
\ No newline at end of file
/* (0.26)
/* (0.27)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.26
#define Module_MajorVersion_CMHG 0.27
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 21 Jan 2012
#define Module_MajorVersion "0.26"
#define Module_Version 26
#define Module_MajorVersion "0.27"
#define Module_Version 27
#define Module_MinorVersion ""
#define Module_Date "21 Jan 2012"
......@@ -18,6 +18,6 @@
#define Module_ComponentName "ABRelease"
#define Module_ComponentPath "castle/RiscOS/Utilities/Autobuild/ABRelease"
#define Module_FullVersion "0.26"
#define Module_HelpVersion "0.26 (21 Jan 2012)"
#define Module_LibraryVersionInfo "0:26"
#define Module_FullVersion "0.27"
#define Module_HelpVersion "0.27 (21 Jan 2012)"
#define Module_LibraryVersionInfo "0:27"
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