[Coco] Coco OS9 Source Control (question)
Gene Heskett
gheskett at wdtv.com
Mon Jun 16 18:10:55 EDT 2014
On Monday 16 June 2014 17:55:38 Bill Pierce via Coco did opine
And Gene did reply:
> I am currently working on a source control system for the OS9 source
> files in my projects. The idea is to basically copy backups of any
> "changed" sources each time I compile (automatically). This system
> will be built into my custom OS9 C compiler, but will also have a
> standalone GUI for creating/editing/retrieving source projects. The
> GUI will create the initial checksum record for the source files to be
> used for later comparisons. Then the files are also archived for the
> first time with the checksum as an extension.
>
> So far, my plan is to use the "last modified" date as my checksum to
> check for changed files, since my compiler "touches" all files it
> compiles. Before compiling each file, the system will check the last
> modified date of the file and compare it to the current project
> checksum list which is generated when you set up the project in the
> GUI module. If the checksum is different (newer), the new file is then
> archived with the new checksum as an extension, the checksum list is
> updated, and then compiling resumes.
>
> What I am wondering, is there a better solution than using the "last
> modified" date?. I had thought of using the file CRC, but text files
> in OS9 do not have a generated CRC so a CRC generating routine would
> have to be added. I know the "last modified" dateis not the most
> accurate method, but it's the best I have at the moment.
>
> Any ideas on a better checksum? An easy way to get a CRC?
>
> Thanks
(nitr)os9 has a syscall to do that. Thats how I did the updates, if
required, in vfy. No sense in re-inventing that particular wheel. :)
>
> Bill Pierce
> "Today is a good day... I woke up" - Ritchie Havens
>
>
> My Music from the Tandy/Radio Shack Color Computer 2 & 3
> https://sites.google.com/site/dabarnstudio/
> Co-Webmaster of The TRS-80 Color Computer Archive
> http://www.colorcomputerarchive.com/
> Co-Contributor, Co-Editor for CocoPedia
> http://www.cocopedia.com/wiki/index.php/Main_Page
> E-Mail: ooogalapasooo at aol.com
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS
More information about the Coco
mailing list