tag:blogger.com,1999:blog-876358347971598886.post7347859625456988413..comments2023-03-25T16:20:46.021+03:00Comments on nothingmuch's perl blog: Versioned site_libnothingmuchhttp://www.blogger.com/profile/03855760206940108541noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-876358347971598886.post-13034382364393355302010-02-23T02:18:05.234+02:002010-02-23T02:18:05.234+02:00> a real solution would involve adding some sor...> a real solution would involve adding some sort of proper hook mechanism to CPAN.pm, i suppose.<br /><br />Another solution is to write a new CPAN client, which shamelessly I did, and added a plugin to exactly this. Works well with local::lib configuration as well.<br /><br />http://github.com/miyagawa/cpanminus/blob/plugins/plugins/git_site_perlmiyagawahttps://www.blogger.com/profile/06065263832285281276noreply@blogger.comtag:blogger.com,1999:blog-876358347971598886.post-56268185684527925242009-10-29T13:56:55.525+02:002009-10-29T13:56:55.525+02:00Eh, it's not really and application, or even a...Eh, it's not really and application, or even a script even. It's a bash function :)<br /><br />I run this from inside my ~/local_cpan (which is a git workspace) to install modules:<br /><br />function gitpan { cpan "$1" && git add . >/dev/null && git commit -m "$1" >/dev/null }Johan Lindstromhttps://www.blogger.com/profile/01769528398854122838noreply@blogger.comtag:blogger.com,1999:blog-876358347971598886.post-12725821763176356062009-10-29T09:57:45.694+02:002009-10-29T09:57:45.694+02:00Note that I do think this is a bad implementation,...Note that I do think this is a bad implementation, a real solution would involve adding some sort of proper hook mechanism to CPAN.pm, i suppose. But it works =)<br /><br />JohanL - is that publicly available? google did not help muchnothingmuchhttps://www.blogger.com/profile/03975438115490089158noreply@blogger.comtag:blogger.com,1999:blog-876358347971598886.post-30321634239778006672009-10-29T02:54:29.148+02:002009-10-29T02:54:29.148+02:00I call mine gitpan.I call mine gitpan.Johan Lindstromhttps://www.blogger.com/profile/01769528398854122838noreply@blogger.comtag:blogger.com,1999:blog-876358347971598886.post-497777587529982852009-10-29T00:19:47.784+02:002009-10-29T00:19:47.784+02:00This is something that I've wanted to add as a...This is something that I've wanted to add as a feature to my cpan script for awhile, but I've been too lazy to do that. :)brian d foyhttps://www.blogger.com/profile/18193842316187266664noreply@blogger.com