CVS component grabber
Tristan M. (2946) 1036 posts |
I’ve been working on a Lua script to grab any missing components for an arbitrary build tree of RISC OS. I’m absolutely stuck on cvs syntax. https://gitlab.com/risc_os_strays/grabber If anyone plans to actually run it, only do it in Linux. It should be considered non-functional in RO for the time being because TBQH I haven’t written that code yet. There’s still an awful lot to implement and fix. Before anyone says it, it doesn’t detect the existence of directories yet. Like I said, lots to do. What it can do is take the desired build as an argument eg BCM2835. It goes through the components file, finds the components and matches them to the entries in moduleDB, parses the paths and attempts to download them. If anyone can offer some input, that’d be great. e: if you enter no arguments it goes through the motions for the AWH3 tree, because those were the files I had handy at the time. |
Colin (478) 2433 posts |
If you are using my CVS distribution then syncrom may do what you want – in any case it is written in basic so you can see what it is doing. There’s instructions in the file but basically you create a folder with the product name you want eg BCM2835Dev on hard disc, put It will download the rom product based on the directory name. If you already have a downloaded rom in the This weird scheme was a response to something Rick Murray once said where he wanted to update a rom with the minimum of disc writes to save wearing out SD cards. If you just want to download a specific component you can do that with the following taskobey file:
put the file in an empty directory and run it. If you want a specific version change HEAD to the version tag you want. |
Tristan M. (2946) 1036 posts |
I had no idea these utilities existed! The purpose of mine is to download the source for components listed in the components file which happen to be missing locally. I used my files as a test because part of the idea is for it to be used for porting to new platforms when there is no mention of the new platform in the CVS tree. In a way, it’s to help with rebasing. Last night out of curiosity I ran my script in RISC OS because I had my pi + 5" screen out. Using RiscLua6 and extra wimpslot allocation it runs. Not successfully of course because of path and CVS issues. It did however get as far as trying to use CVS to download the directories it collected. I have no idea what version of CVS I’m using right now. Apparently I have different versions on different devices. IIRC one has a yellow fish or something for an icon, and the other has a rather more default icon. What I’m writing came about because I’ve been stalled out for months because of lack of time, access to hardware, and a completely messed up source tree which I’ve been trying to reconstruct. It has components from various places in the CVS source tree. TBQH CVS makes my heart sink when I so much as think about it. |