Friday, 29 May 2020

Re: [Rpcemu] Installing to Linux (John McCartney)

In message <da7dec82-5ea5-f619-d8ea-f9482f0a621c@skynet.be>
Peter Veltmans <peter.veltmans@skynet.be> wrote:

> #!/bin/bash
> #
> # A script to start RPCemu with RISCOS 5!
> #
> cd /home/USER/PROGRAMS/RPCEmu/rpcemu-0.9.3-recompiler-RISCOS5
> ./rpcemu-recompiler

You could make the script more generic by doing:

#!/bin/bash
cd $(dirname $0)
./rpcemu-recompiler

That way it will change directory to its own location, so it can be
dropped straight into all the versions of RPCEmu you have.

Bryan.

--
RISC OS User Group Of London - http://www.rougol.jellybaby.net/
RISC OS London Show - http://www.riscoslondonshow.co.uk/

_______________________________________________
RPCEmu mailing list
RPCEmu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

No comments:

Post a Comment