[darcs-devel] darcs patch: Save Context.hs when creating 'dist' tar ball.

marnix at marnux marnix at marnux
Fri Dec 30 12:39:30 PST 2005


Fri Dec 30 20:53:16 MET 2005  Marnix Klooster <marnix.klooster at gmail.com>
  * Save Context.hs when creating 'dist' tar ball.

This is to prevent "darcs --exact-version" outputting something like

 darcs compiled on Mar  2 2005, at 10:56:16
 unknown

as it does when building from the output of "make dist", e.g., from the
official tarballs at darcs.net.  (This is what a lot of people and distros do.
Gentoo does this, and I'm using Gentoo, and I want to be able to do "darcs
--exact-version" and have it output something sensible.)

The reason that this problem occurs is that while doing 'make predist' (in the
'predist' preference), Context.hs was nicely preserved by predist_copy, but
then thrown away by distclean.  So the resulting tarball has no Context.hs,
which results in the "unknown" exact version.

I don't really like the way I solved this; if someone has a better way, feel
free to drop this patch and supply a different one.

Groetjes,
 <><
Marnix

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 7919 bytes
Desc: A darcs patch for your repository!
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20051230/fb1a023a/attachment.bin


More information about the darcs-devel mailing list