| >!Run
|
| Copyright 2003-2012, Stephen Fryatt (info@stevefryatt.org.uk)
|
| This file is part of CashBook:
|
|   http://www.stevefryatt.org.uk/risc-os/
|
| Licensed under the EUPL, Version 1.2 only (the "Licence");
| You may not use this work except in compliance with the
| Licence.
|
| You may obtain a copy of the Licence at:
|
|   http://joinup.ec.europa.eu/software/page/eupl
|
| Unless required by applicable law or agreed to in
| writing, software distributed under the Licence is
| distributed on an "AS IS" basis, WITHOUT WARRANTIES
| OR CONDITIONS OF ANY KIND, either express or implied.
|
| See the Licence for the specific language governing
| permissions and limitations under the Licence.

| Set the application path.


Set CashBook$Dir <Obey$Dir>

| Set the application variables.

Set CashBook$Help <CashBook$Dir>.!Help
Set CashBook$Version "0.98a"
Set CashBook$Web "http://www.stevefryatt.org.uk/risc-os/cashbook/"
Set CashBook$Title "CashBook"
Set CashBook$Publisher "Stephen Fryatt"
Set CashBook$Description "Home accounts package"

| Set the filetype information.

Set File$Type_1CA CashBook

| Claim CashBook files.

Set Alias$@RunType_1CA Run <CashBook$Dir>.!Run -file %%*0

| Set the application sprites.

IconSprites <CashBook$Dir>.!Sprites

| Ensure the Nested Wimp is installed.

RMEnsure WindowManager 3.98 Error CashBook requires the Nested Window Manager.

| Ensure that the Castle Shared C Library is present, with C99 support.

RMEnsure SharedCLibrary 5.17 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 5.43 Error CashBook requires version 5.43 or later of the Shared C Library.

| Allocate memory and run CashBook

WimpSlot -min 640k -max 640k

Run <CashBook$Dir>.!RunImage %*0
