New version of the SDME Installer

40 views
Skip to first unread message

Donald Montaine

unread,
Nov 9, 2023, 9:08:50 PM11/9/23
to ScarletDME
I have made the following changes to correct system programs referencing non existent files during -internal compilation.  These changes are not reflected in other repositories, However, you are free to apply these changes if you contribute to another repository.

1) change installer to copy gplsrc to /usr/qmsys add after line 90
sudo cp -R gplsrc /usr/qmsys

2) in GPL.BP CPROC change lines 214 & 215 from
$execute 'BASIC REVSTAMP'
$execute 'RUN REVSTAMP'
to
$execute 'BASIC GPL.BP REVSTAMP'
$execute 'RUN GPL.BP REVSTAMP'

3) in GPL.BP ERRGEN line 55 change
openseq 'CSRC', 'err.h' to in.f else abort 'Cannot open CSRC err.h'
to
openseq './gplsrc/err.h' to in.f else abort 'Cannot open gplsrc err.h'

4) in GPL.BP OPGEN line 2 change
* Generate BP OPCODES.H from CSRC equivalent.
to
* Generate GPL.BP OPCODES.H from gplsrc equivalent.

5) in GPL.BP OPGEN lines 32-33 change
openseq 'CSRC', 'opcodes.h' to in.f else stop 'Cannot open CSRC opcodes.h'
    openseq 'BP', 'OPCODES.H' to out.f else
to
    openseq './gplsrc/opcodes.h' to in.f else stop 'Cannot open gplsrc opcodes.h'
    openseq 'GPL.BP', 'OPCODES.H' to out.f else
   
6) in GPL.BP REVSTAMP line 2 change
* Generate BP REVSTAMP.H from CSRC equivalent
to
* Generate GPL.BP REVSTAMP.H from gplsrc equivalent

7) in GPL.BP REVSTAMP lines 32-33 change
    openseq 'CSRC', 'revstamp.h' to in.f else abort 'Cannot open CSRC revstamp.h'
    openseq 'BP', 'REVSTAMP.H' to out.f else
to
    openseq './gplsrc/revstamp.h' to in.f else abort 'Cannot open gplsrc evstamp.h'
    openseq 'GPL.BP', 'REVSTAMP.H' to out.f else
   
8) added progress messages to the deletesdme.sh file

9) updated sdme.zip file with changes.
   
The project is available on github at: https://github.com/dmontaine/ScarletDME64_Installer

or if you just prefer to download a zip file, you can find that at:

Nivethan T

unread,
Nov 10, 2023, 10:16:22 AM11/10/23
to ScarletDME
I like these changes, instead of polluting CSRC with the development paths, much better to bundle the required C code as part of the master account.

Now that you're generating the opcodes.h into GPL.BP, you'll need to update BCOMP as well as it has

in GPL.BP BCOMP - line 288
$include BP opcodes.h
to
$include GPL.BP opcodes.h

I'll be incorporating this into my repo, thanks

Donald Montaine

unread,
Nov 11, 2023, 4:20:24 AM11/11/23
to ScarletDME
in my GPL.BP BCOMP lines 286-292 are

$include syscom.h
$include tokens.h
$include opcodes.h
$include header.h
$include dictdict.h
$include int$keys.h
$include bcomp.h

There is no reference to a BP file.

Nivethan T

unread,
Nov 11, 2023, 10:08:06 AM11/11/23
to ScarletDME
The beauty of git, I git blamed that line in my code and found that I had changed it in Aug 5th. BCOMP looks for the includes in GPL.BP while OPGEN generates to the BP folder so I had changed the include.

Your changes in 4 & 5 solve the issue by generating the codes directly to GPL.BP - I'll need sync these changes in.

4) in GPL.BP OPGEN line 2 change
* Generate BP OPCODES.H from CSRC equivalent.
to
* Generate GPL.BP OPCODES.H from gplsrc equivalent.

5) in GPL.BP OPGEN lines 32-33 change
openseq 'CSRC', 'opcodes.h' to in.f else stop 'Cannot open CSRC opcodes.h'
    openseq 'BP', 'OPCODES.H' to out.f else
to
    openseq './gplsrc/opcodes.h' to in.f else stop 'Cannot open gplsrc opcodes.h'
    openseq 'GPL.BP', 'OPCODES.H' to out.f else
  

Thanks
Reply all
Reply to author
Forward
0 new messages