"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
The above looks fragile,
It *is*, but I couldn't make it work otherwise on Windows. (The same
goes for your more complicated suggestion :-) )
What's the deal with ${srcdir}/extra-name? I don't see how
that can
get initialized to anything sensible,
It should get initialized when a tarball release. I actually meant to
commit one, but forgot about it: Consider it part of the patch.
and I would think if it exists, there's an argument for it
taking
precedence over hg identify.
Finally, it occurs to me that
cd ${srcdir}
echo ";;; local-diff.el --- local differences from tip" >
lisp/local-diff.el
echo '(setq hg-reference-version "'`hg identify`'")' >>
lisp/local-diff.el
# Use rawstring literal :-)
echo '(setq hg-reference-diff #"' >> lisp/local-diff.el
hg diff >> lisp/local-diff.el
echo '")' >> lisp/local-diff.el
echo ";;; local-diff.el ends here" >> lisp/local-diff.el
deserves mention. :-) If that seems a bit privacy-invading, how about
hg status?
Well, what I have *does* say *if* there are local modifications. I
think this should be enough for most purposes.
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches