release_autobuild,feb 2.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Copyright 2010 Castle Technology Ltd
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
|     http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
|
| If there is no ROM image (e.g. the build failed), exit here
IfThere <Build$Dir>.Images.<Build$ImageName> 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
22
Do Mkdir -p <ab_soft$dir>
23

Ben Avison's avatar
Ben Avison committed
24 25
| Copy the Apache licence file into the zip directory
Copy ab_res:LICENSE <ab_res$dir>.zip.LICENSE ~cf~r~v
26 27 28 29

| Copy the ReadMe for this build into the zip directory
Copy ab_res:ReadMe/txt <ab_res$dir>.zip.ReadMe/txt ~cf~r~v

30 31 32 33 34 35
| Populate the softload zip directory
Copy ab_res:soft.ReadMe/txt <ab_res$dir>.zip.soft.ReadMe/txt ~cf~r~v
Copy ab_res:soft.!Run     <ab_soft$dir>.* ~cf~v
Copy ab_res:soft.Loader   <ab_soft$dir>.* ~cf~v
Copy ab_res:soft.SoftLoad <ab_soft$dir>.* ~cf~v
Run BasCrunch -1 ab_res:soft.Prompt <ab_soft$dir>.Prompt
36
Copy <Build$Dir>.Images.<Build$ImageName> <ab_soft$dir>.riscos ~cf~r~v
37

ROOL's avatar
ROOL committed
38
| Copy pre-EDID specific softload support
39
Do Mkdir -p <ab_res$dir>.zip.soft.!Boot.Choices.Boot.PreDesk
Robert Sprowson's avatar
Robert Sprowson committed
40
Copy ab_res:Configure <ab_res$dir>.zip.soft.!Boot.Choices.Boot.PreDesk.Configure ~cfr~v
ROOL's avatar
ROOL committed
41

42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| 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 ROM build zip archive on the autobuild server
Remove <ab_zip$file>

| Copy the ROM build 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
Ben Avison's avatar
Ben Avison committed
57
Access <ab_zip$file> rw/r