Try to make it easier for when I update the build script template.
authorSteve Youngs <steve@sxemacs.org>
Mon, 10 Mar 2014 09:09:43 +0000 (19:09 +1000)
committerSteve Youngs <steve@sxemacs.org>
Mon, 10 Mar 2014 09:09:43 +0000 (19:09 +1000)
commita9baeb490600c1e0a64cfc1e193cc6c145327c21
tree0520d1d8d4f48de7d359c90d85164ae19b5a0f46
parent89087453d412f26224203bc3549d86c4729af683
Try to make it easier for when I update the build script template.

It's most likely incredibly hacky, but this changeset gives a pkgusr a way
to incrementally and interactively apply updates to their build script
when the central template script in /etc/pkgusr/skel-package is updated.

If the central template script is newer than the pkgusr's a notice is
printed to their stdout on login that contains further instructions of how
to proceed.

The actual updating is done via #'ediff-files in an interactive SXEmacs
session.  That way the pkgusr can "cherrypick" the changes.

* lisp/bld-update.el: New.  Update build scripts via ediff.

* etc/pkgusr/handy_funcs (build-update): New.  Calls SXEmacs with
ediff-files on ~/build and /etc/pkgusr/skel-package/build
(checkupdates): Checks to see if the build script in
/etc/pkgusr/skel-package is newer than the one in $HOME

* etc/pkgusr/bash_profile (CHECKUPDATES): New.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
etc/pkgusr/bash_profile
etc/pkgusr/handy_funcs
lisp/bld-update.el [new file with mode: 0644]