From xemacs-m  Mon Sep 15 01:17:25 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id BAA00695
	for <xemacs-beta@xemacs.org>; Mon, 15 Sep 1997 01:17:24 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.7/8.8.7) id XAA30763;
	Sun, 14 Sep 1997 23:20:39 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Packages: what to do?
References: <kigbu1w9fd4.fsf@jagor.srce.hr> <87pvqbbbez.fsf@bittersweet.inetarena.com>
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: karlheg@inetarena.com's message of "14 Sep 1997 18:42:12 -0700"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: multipart/mixed;
 boundary="Multipart_Sun_Sep_14_23:20:38_1997-1"
Content-Transfer-Encoding: 7bit
Date: 14 Sep 1997 23:20:38 -0700
Message-ID: <m2zppfm72h.fsf@altair.xemacs.org>
Lines: 74
X-Mailer: Quassia Gnus v0.4/XEmacs 20.3(beta21) - "Minsk"

--Multipart_Sun_Sep_14_23:20:38_1997-1
Content-Type: text/plain; charset=US-ASCII

Karl M Hegbloom <karlheg@inetarena.com> writes:

>  I opened the gnus package by standing in
> /usr/local/lib/xemacs/packages/, and doing `tar xzf gnus...' on it.
> When XEmacs is redumped, it finds the new packages, and dumps the
> auto-autoloads from them.  `make autoloads' will build there too.

>  There's a configure time option now too, to set the packages
> directory.  I've not tested it, since I don't need to.

Exactly.

I've attached the shell script I'm using to make Gnus packages.  I've
tried making patches to the Gnus makefiles for package-ization and the 
script is much easier.

To use, change EMACS and PACKAGEDIR to suit, then execute while
sitting in the top level Gnus source directory.

I'm currently running with Quassia Gnus 0.04 autoloads dumped with
XEmacs, which pleases me immensely :-).


--Multipart_Sun_Sep_14_23:20:38_1997-1
Content-Type: message/rfc822

#! /bin/sh

# Build and install an XEmacs package

# Path to your local version of XEmacs-20.3
EMACS=/usr/src/xemacs-20.0/src/xemacs
# Default package (top level) directory
PACKAGEDIR=/usr/local/lib/xemacs/packages

EVIL_LISP="cus-edit.el cus-face.el custom.el wid-browse.el wid-edit.el x-overlay.el md5.el"

for i in ${EVIL_LISP}; do
	if [ -f lisp/$i ]; then
		mv lisp/$i lisp/=$i
		rm -f lisp/${i}c
	fi
done

rm -f lisp/auto-autoloads.el*
rm -f lisp/custom-load.el*

echo Building Main Gnus lisp
(cd lisp; make EMACS=$EMACS)

echo Building Gnus autoloads
$EMACS -batch -q -no-site-file -eval '(setq autoload-package-name "gnus")' \
	-l autoload -f batch-update-directory lisp
$EMACS -batch -q -no-site-file -f batch-byte-compile lisp/auto-autoloads.el
$EMACS -batch -q -no-site-file -f batch-byte-compile lisp/custom-load.el

if [ -d $PACKAGEDIR/lisp/gnus ]; then
	rm -rf $PACKAGEDIR/lisp/gnus
fi

mkdir $PACKAGEDIR/lisp/gnus
install -c -m644 lisp/*.el $PACKAGEDIR/lisp/gnus
install -c -m644 lisp/*.elc $PACKAGEDIR/lisp/gnus

rm -f $PACKAGEDIR/info/gnus.info* $PACKAGEDIR/info/message.info*
(cd texi
 makeinfo gnus.texi -o $PACKAGEDIR/info/gnus.info
 makeinfo message.texi -o $PACKAGEDIR/info/message.info
)

--Multipart_Sun_Sep_14_23:20:38_1997-1--

