release_autobuild,feb 1.69 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Copyright 2009 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

18 19 20 21
| Remove any old crud from our build-specific resources directory
x Wipe <ab_res$dir>.zip ~cfr~v
Remove <ab_res$dir>.tmp/zip

22 23 24
| Create an empty directory to hold the files that will be zipped up
CDir <ab_res$dir>.zip

25 26
| 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
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
| Copy the ROM image into the zip directory
Copy <Build$Dir>.Images.<Build$ImageName> <ab_res$dir>.zip.<Build$ImageName> ~cf~r~v
33

34 35
| Set the zip directory as the current directory
Dir <ab_res$dir>.zip
36

37 38
| Create a zip archive with the required files in it
Do zip -9qj ^.tmp/zip *
39

40 41
| Return the CSD to its original state
Back
42 43 44 45 46

| Delete any pre-existing zip archive on the autobuild server
Remove <ab_zip$file>

| Copy the template zip archive onto the autobuild server
47
Copy <ab_res$dir>.tmp/zip <ab_zip$file> ~cfr~v
48 49
SetType <ab_zip$file> &A91
Access <ab_zip$file> rw/r