ThinkC Extracting source code files so I can save in github

Relating to ThinkC Development

RickLawson

New Tinkerer
May 4, 2023
18
13
3
Boiling Springs, SC
Has anyone found a reasonable way to extract their C source code from minivmac so that it's easy to push to github with normal line endings?

I found this project (which is Java) https://www.catacombae.org/hfsexplorer/ that allows me to explore and extract files from a mini vmac dsk image

I was thinking of writing a utility based on this project that would sync a folder in minivmac with my workstation.
I'd like to not have a gui and just run a command and have it sync from mini vmac dsk image to my local workstation so I can push to github.

But I don't want to reinvent the wheel if there is an easier way
 

eric

Administrator
Staff member
Sep 2, 2021
941
1,542
93
MN
scsi.blue
I'm away from my computer but a few notes on things I've done:

Use hfsutils cli apps, work OK.

Retro86s tool chain has a way to sync with vmac.

Basalisk has a shared folder functionally

There are a few python libraries for hfs and resource forks.
 

RickLawson

New Tinkerer
May 4, 2023
18
13
3
Boiling Springs, SC
Ok yeah I found this which should allow me to script up what I need to do


I'll post it here when done

In my case I'll have a config file that takes mappings from src folder on the minivmac volume and destination folder on my workstation and will export when ran so I can commit to github repo
 
  • Like
Reactions: eric

RickLawson

New Tinkerer
May 4, 2023
18
13
3
Boiling Springs, SC
Ok checked in some python scripts at

Used them to sync up my C code from minivmac and everything seems to be formatted nicely

Suggestions and merge requests welcome!