Has anyone built a crude CMS ( Code Management System) in Pelles C. I'm working on a Dartmouth style BASIC interpreter since my old ALTAIR 8080 died. I really do not want to spend the time to fully understand GITHIB right now. Just wondering.
Hello,
You can check this one :
QuoteA simple CRUD system written in C
https://github.com/gabrielwitor/CRUD-C
Thank you for the lead.
That's an interesting project idea, actually. If the scope of the project was limited to source code and ignored binary assets (images, sound, etc.), you could in theory use sqlite (or any db that supports triggers)
A CRUDE but effective workflow might be.
- scan source code directories for code files (for example, .c or .h)
- check file timestamps
- find the file in the database
- If file times on the file system differ from the one stored in the database, change the content in the database.
- If it doesn't exist at all, insert it. (filepath, file timestamp, content)
- use a "BEFORE" trigger to copy the current row into a history table. The history table will look like the code table plus a new primary key.
I mean, that's no GIT replacement, but it would track changes.
Is that what you meant by "crude"? Or did you need something more?
I think with just a little more work, one could add revisions.