release_autobuild,feb 1.87 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| 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

| If SparkFS isn't running, we're going to have problems so generate error
RMEnsure SparkFS 0.00 Error ABRelease: release_autobuild: requires SparkFS to be present
RMEnsure Zip     0.00 Error ABRelease: release_autobuild: requires the SparkFS Zip module to be present

| Remove any old template zip archive from our resources directory
Remove <ab_res$dir>.zip

| Copy the central template zip archive into our resources directory
Do Copy ab_res:zip <ab_res$dir>.zip ~cfr~v
Run ab_res:NullEvent

| Open the archive so we can copy into it
Do Filer_Run <ab_res$dir>.zip
Run ab_res:NullEvent

| Copy a ReadMe file into the zip archive
Copy ab_res:ReadMe/txt <ab_res$dir>.zip.ReadMe/txt ~cfr~v

| Copy the ROM image into the zip archive
Copy <Build$Dir>.Images.<Build$ImageName> <ab_res$dir>.zip.<Autobuild$Build> ~cfr~v
Run ab_res:NullEvent

| Close the archive (filer window)
Do Filer_CloseDir <ab_res$dir>.zip
Run ab_res:NullEvent

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

| Copy the template zip archive onto the autobuild server
Copy <ab_res$dir>.zip <ab_zip$file> ~cfr~v

| Remove the template zip archive from our resources directory
Remove <ab_res$dir>.zip