Mail Archives: geda-user/2013/01/21/13:23:54
On Mon, 2013-01-21 at 13:15 -0500, Ben Gamari wrote:
> Relatively recently I stumbled upon Peter Clifton's sedrename plugin for
> pcb which he brought to the geda-dev list sometime in 2008. Sadly, the
> plugin had severely bit-rotted since it was introduced. Being unable to
> find anyone who had brought the code up to date with the current state
> of pcb, I tossed the file into a Git repository[1], ported it forward,
> and wrote a hacky Makefile. In addition to a rule to build the plugin,
> the Makefile also includes a simple install rule.
>
> While I didn't change the user interface, it could probably do with some
> revision. It appears that originally the intention was to pass the
> regular expression as an argument to the sedrename command. Is there a
> reason this was #if 0'd in favor of prompt_for()'ing?
>
> I hope this is useful to someone. As always, pull requests are very
> welcome.
Cool, thanks!
I tend to write those little bits of code as and when I need something
slightly esoteric, and in this case, I think it was for a hierarchical
design I was working on renaming some parts of.
As for why the #if 0 code, I can't remember, sorry. It might have been
as simple as lack of support for quoting the regex properly in the
action string. (I can't recall exactly how our action parser handles
quotes and / or escaping).
Best regards,
--
Peter Clifton <peter DOT clifton AT clifton-electronics DOT co DOT uk>
Clifton Electronics
- Raw text -