BBC BASIC for SDL 2.0 on GitHub

discuss PC<>Acorn file transfer issues & the use of FDC, XFER, Omniflop/disk etc.
Post Reply
User avatar
Richard Russell
Posts: 595
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

BBC BASIC for SDL 2.0 on GitHub

Post by Richard Russell » Wed Jan 02, 2019 6:07 pm

By popular demand, I've now put the BBCSDL source (plus libraries, examples, etc.) on GitHub - I haven't a clue what I'm doing, I've just followed instructions kindly given to me! The previous DropBox share has now been deleted.

I look forward to the explosion of interest that I was assured would result... :lol:

User avatar
Richard Russell
Posts: 595
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by Richard Russell » Wed Jan 02, 2019 6:44 pm

When committing this project to git I received a warning that the file EdgeSlic.ptb had been automatically changed from LF to CRLF line endings. This is a binary data file, not a text file, so any such substitution will break the program it is used by (Rubik.bbc). How can I tell git not to make this substitution?

User avatar
hoglet
Posts: 7768
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by hoglet » Wed Jan 02, 2019 6:59 pm

I think by creating a .gitattributes file in the root of the repository containing:

Code: Select all

*.ptb binary
You might then need to delete the file, make a commit, re-add the file and make another commit.

Dave

User avatar
Richard Russell
Posts: 595
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by Richard Russell » Wed Jan 02, 2019 9:00 pm

hoglet wrote:
Wed Jan 02, 2019 6:59 pm
I think by creating a .gitattributes file in the root of the repository
Thanks, I'll try that.

User avatar
Richard Russell
Posts: 595
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by Richard Russell » Wed Jan 02, 2019 10:59 pm

hoglet wrote:
Wed Jan 02, 2019 6:59 pm
You might then need to delete the file, make a commit, re-add the file and make another commit.
OK, I followed your instructions in as much detail as my negligible understanding of git allowed! Whether it's worked I don't know - I got no warnings about changes of line endings but I haven't tried to check whether the file in the repository is now correct (TBH I don't know how to).

User avatar
tricky
Posts: 3098
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by tricky » Thu Jan 03, 2019 5:47 am

I only use 2 features of itt(hub): Download whole project as zip or if there are any releases/artifacts, download them for a prebuilt binary.

User avatar
Richard Russell
Posts: 595
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by Richard Russell » Thu Jan 03, 2019 12:21 pm

tricky wrote:
Thu Jan 03, 2019 5:47 am
if there are any releases/artifacts, download them for a prebuilt binary.
I wasn't sure whether to include all the BASIC libraries and example programs at GitHub, especially as they are an order-of-magnitude larger than the source code, but in the end it was easier to do so, and in the absence of comprehensive documentation the examples serve a useful purpose in demonstrating what can be achieved and how.

On which point I'm always on the lookout for new examples/demos to showcase BBC BASIC, so if anybody has anything suitable (even if it needs some work to be cross-platform-compatible) I would be happy to consider including it.

User avatar
tricky
Posts: 3098
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by tricky » Thu Jan 03, 2019 1:23 pm

Are you planning on providing windows binaries?
I have been writing in C for nearly 40 years and using visual studio since the 90s but have never had any luck with mingw.
We had a very customised build environment for PS2 and even that only worked on some windows machines.
One less barrier to entry :)

Soruk
Posts: 256
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by Soruk » Thu Jan 03, 2019 2:16 pm

Richard Russell wrote:
Wed Jan 02, 2019 10:59 pm
hoglet wrote:
Wed Jan 02, 2019 6:59 pm
You might then need to delete the file, make a commit, re-add the file and make another commit.
OK, I followed your instructions in as much detail as my negligible understanding of git allowed! Whether it's worked I don't know - I got no warnings about changes of line endings but I haven't tried to check whether the file in the repository is now correct (TBH I don't know how to).
Here's an SHA-1 hash of the file as pulled from github:

a2bbcf59cf3128d4b1abe72825f96d066370e068

If your file matches, it worked.

User avatar
Richard Russell
Posts: 595
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: BBC BASIC for SDL 2.0 on GitHub

Post by Richard Russell » Thu Jan 03, 2019 4:23 pm

Soruk wrote:
Thu Jan 03, 2019 2:16 pm
Here's an SHA-1 hash of the file as pulled from github:
a2bbcf59cf3128d4b1abe72825f96d066370e068
If your file matches, it worked.
Looks good:

Code: Select all

>CertUtil -hashfile examples\games\.Tables\EdgeSlic.ptb SHA1
SHA1 hash of examples\games\.Tables\EdgeSlic.ptb:
a2bbcf59cf3128d4b1abe72825f96d066370e068
CertUtil: -hashfile command completed successfully.

Post Reply