I solved my problem with Dist::Zilla. If you agree with me that you should be able to install from your git repository, without requiring your users to have Dist::Zilla installed here’s one way of doing it.
First install Dist::Zilla::Plugin::CopyTo. Now Edit your
dist.ini. Most people probably use one of the Dist::Zilla bundles. Assuming you use Basic here’s what you do. Now as you can see we use GatherDir to get where the source should come from and CopyTo to tell additional places where the output of the script should be sent to. It will still send to the default directory, that’s ok, you can just ignore those files. add . to your repo (making sure to add the default generated location to your ignore list) and commit. now if dzil changes any of these you can see it.
If you wanted to with git you could use a
git-new-workdir and another branch and copy to it and commit this stuff to a different branch. I haven’t found another way to do it in a seperate branch yet, although someone said it’s possible.
dzil ever gives you some vague error about some util file… run
dzil clean I don’t know why it was doing that to me occasionally through all this but I spent like 8 hours thinking my config was screwed up when the directory just needed to be cleaned.
P.S. 2 Thanks to rjbs for putting up with my asininity while I asked a lot of questions and ranted.
My stuff is 99% working now… I just have a problem where my licensing is wrong :( I’ve set it to Perl_5 but it really should be GPL3 and Artistic2 (or whatever those are in Software::License).