TravisSwicegood.com

1 February

Never say die: compiling the git manual on OSX

Last night I battled with my computer trying to get git's manual to install. Yes, I know they distribute the manual already packaged, but I have my git compiled from their repo, so why shouldn't my docs be in step? I found a lot of info on this wiki page that helped get me started in the right direction, but was still having issues. Turns out, the latest version of xmlto uses a cp -a command which is a no-go on OSX.

The fix is simple enough, on line 11 of format/docbook/man, change "cp -a -- ..." to "cp -- ..." and you're done.

1 comment

Aaaah, thanks for pointing that ...sorry - I haven't expected that cp -a is not available in cp on OSX ... Anyway - change to use -R was requested by Debian guys, I extended that to preserve attributes and -a was an easy way for me with GNU coreutils cp. So better will be to use cp -Rp -- / this should work on OSX too and should do the same thing. Will do that this way in next release.

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)