On Wed, Mar 16, 2005 at 07:15:59PM -0600, Rob Browning wrote:
> 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
Stupid question: The commands you pipe into dpep end up being executed
by the shell that is invoked by dpep in the editable source tree?
> 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
Should the shell terminate after executing the script, immediately
delivering a patch file, or do you want a shell nevertheless?
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]