No longer relies on Sys$ReturnCode for swis.h export
Detail: amu cleverly sets Sys$ReturnCode to zero just prior to executing any command from the Makefile, hence checking for Sys$ReturnCode does not work. Script changed to look for AMU$ReturnCode which is (in amu 5.06 and later) the return code of the previous command. However, since the variable will not be set by earlier versions of amu, the behaviour of always copying the file will return until amu 5.06 appears in the build. Admin: Tested manually. Version 4.99. Tagged as 'RISC_OSLib-4_99'
Showing with 9 additions and 9 deletions