[Pkg-jed-devel] Re: [Pkg-jed-commit] r32 - in trunk/packages/jed/debian: . patches

Rafael Laboissiere Rafael Laboissiere <rafael@debian.org>
Sun, 24 Apr 2005 21:31:30 +0200


* Jörg Sommer <joerg@alea.gnuu.de> [2005-04-23 19:45]:

> why not:
> 
> temp=$(mktemp)
> RET=0
> /usr/bin/jed -batch -n -l preparse.sl > $tmp || RET=$?
> if [ $RET -ne 0 ]; then
>   echo "failed (see $temp)"
>   exit $RET
> fi
> rm $temp

Yes, this is indeed better.  However, I am finishing now a new
implementation for install-time generation of the slc files.  As you
mentioned in a previous post, every time the jed-common package is updated,
the .sl files of the add-on packages (like jed-extra) must be recompiled.
Here is how the scheme works (this is roughly similar to emacsen-common's
scheme, but much simpler):

1) Each package needing byte-compiling must put a script in
   /usr/share/jed/compile/.  This script must be executable and accept an
   argument that is either "install" or "remove".
   
2) This script must be called in both postinst and prerm with the
   appropriate argument.
   
3) The jed-common package will run all the scripts present in
   /usr/share/jed/compile/ in its postinst and prerm.
   
I will soon commit the changes in the jed-common and jed-extra packages
for implementing this.  Comments are welcome.
 
-- 
Rafael