Package: dpatch
Severity: wishlist
(I recently sent this to Joerg Jaspert <[EMAIL PROTECTED]>, but given
the changes I saw mentioned wrt dpatch maintainership, I thought I
should probably re-file as a wishlist bug.)
I recently altered the emacs21 package to use dpatch to handle the
automatic autotools diff that we produce. This went reasonably well,
but there was one possible enhancement to dpatch that might have made
it easier. As it stands here's what I did:
define update_debian_autofiles_dpatch
${cleanup_all}
# rm aclocal.m4 so it doesn't confuse newer autoconfs, but touch it
# so ./Makefile won't be upset if it's not recreated
# (b/c not needed).
(set -e; \
echo -n "trap 'exit 230' EXIT"; \
echo -n " && rm -f aclocal.m4 && touch aclocal.m4"; \
echo -n " && aclocal"; \
echo -n " && autoconf"; \
echo -n " && rm -rf autom4te.cache"; \
echo -n " && trap - EXIT"; \
echo -n " && exit") \
| dpatch-edit-patch patch autofiles
endef
This works, but it might be a bit cleaner if I could just just tell
dpatch-edit-patch to use a script for the update, perhaps something
like this:
dpatch-edit-patch patch --command debian/update-autofiles autofiles
Also, I was curious about the "exit 230" choice. Why not just treat
any non-zero exit code as an abort?
Thanks
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]