>>>> "jari" == jari aalto
<jari.aalto(a)poboxes.com> writes:
jari> I started experimenting with XEmacs packaging system and
jari> before I convert my modules to this I'd like to know If
jari> I'm on right tracks:
See Info, XEmacs, Packages.
jari> _pkg Seems pretty straightforward
auto-generated
jari> auto-autoloads.el Seesm to contain generate-file-autoloads
auto-generated
jari> cust-load.el Seems to be generated by ??
auto-generated (if sources contain (defcustom ...) BTW: it's called
custom-load.el).
To build a simple package you need at least these files:
d:\el\xemacs-packages:
total 128
drwxrwxrwx 2 AichnerAd 5 0 Mar 26 11:06 .
drwxrwxrwx 2 AichnerAd 5 0 Mar 26 11:06 ..
drwxrwxrwx 2 AichnerAd 5 0 Mar 25 23:59 comm
-rw-rw-rw- 1 AichnerAd 5 2541 Mar 16 21:11 hack-package-index.el
-rw-rw-rw- 1 AichnerAd 5 1620 Mar 16 21:05 Makefile
-rw-rw-rw- 1 AichnerAd 5 5713 Mar 16 21:11 package-compile.el
-rw-rw-rw- 1 AichnerAd 5 12424 Mar 26 00:07 XEmacs.rules
d:\el\xemacs-packages\comm:
total 24
drwxrwxrwx 2 AichnerAd 5 0 Mar 25 23:59 .
drwxrwxrwx 2 AichnerAd 5 0 Mar 25 23:59 ..
drwxrwxrwx 2 AichnerAd 5 0 Mar 26 12:06 bat-mode
-rw-rw-rw- 1 AichnerAd 5 1754 Mar 25 23:59 Makefile
d:\el\xemacs-packages\comm\bat-mode:
total 16
drwxrwxrwx 2 AichnerAd 5 0 Mar 26 12:06 .
drwxrwxrwx 2 AichnerAd 5 0 Mar 26 12:06 ..
-rw-rw-rw- 1 AichnerAd 5 3950 Mar 26 11:03 bat-mode.el
-rw-rw-rw- 1 AichnerAd 5 91 Mar 26 00:11 ChangeLog
-rw-rw-rw- 1 AichnerAd 5 1167 Mar 26 11:05 Makefile
-rw-rw-rw- 1 AichnerAd 5 402 Mar 25 21:59 package-info.in
jari> Are these the only files that are needed to put in
jari> PACKAGE-VER.tar.gz? When PACKAGE-VER.tar.gz is ready
jari> where should it be put available?
See staging in XEmacs.rules file.
jari> Q. How do I classify the the "type" (I'm using the
jari> footnote-el as an example)
Read info docs on
XEmacs, Packages
jari> ;;;###autoload
jari> (package-provide 'footnote
jari> :version 1.09
jari> :type 'regular)
jari> Q. Where do I send the package-get-base entry, like the one
jari> in footnote.el
It goes into the staging directory as well.
jari> (footnote
jari> (standards-version 1.0
jari> version "1.06"
jari> author-version "0.18x"
jari> date "1998-08-27"
jari> build-date "1998-09-19"
jari> maintainer "SL Baur <steve(a)xemacs.org>"
jari> distribution stable
jari> priority low
jari> category "comm"
jari> dump nil
jari> description "Footnoting in mail message editing modes."
jari> filename "footnote-1.06-pkg.tar.gz"
jari> md5sum "796323a84d97bade70a5d78fd9076a2e"
jari> size 13551
jari> provides (footnote)
jari> requires (mail-lib xemacs-base)
jari> type regular
jari> ))
jari> What's priority? How to choose Category value?
Don't know.
jari> Q. What if a MODULE consists of several files, say
jari> xxx-file1.el xxx-file2.el?
If they're all necessary to provide MODULE, then it's a regular package.
jari> jari
Make sure you also get hack-package-index.el from xemacs-packages CVS
sources. I had trouble checking it out.
I am building all my packages from within a native Windows NT MULE
Xemacs using M-x compile RET make --unix bindist RET
I have Cygnus Development Tools installed to get GNU make, bash, etc.
I had to change quoting in XEmacs.rules and Makefile,
e.g. from
$(AUTOLOAD_PATH)/auto-autoloads.el : $(ELCS:.elc=.el) $(AUTOLOAD_PATH)/_pkg.el
$(XEMACS) $(VANILLA) -batch \
-eval "(setq autoload-package-name \"$(PACKAGE)\")" \
-l autoload -f batch-update-directory $(AUTOLOAD_PATH)
@rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~
to
$(AUTOLOAD_PATH)/auto-autoloads.el : $(ELCS:.elc=.el) $(AUTOLOAD_PATH)/_pkg.el
$(XEMACS) $(VANILLA) -batch \
-eval "(setq autoload-package-name \\\"$(PACKAGE)\\\")" \
-l autoload -f batch-update-directory $(AUTOLOAD_PATH)
@rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~
HTH,
Adrian
--
Adrian Aichner Teradyne GmbH, European Design Center
Integra Test Division Telephone +49/89/41861(0)-208
Dingolfinger Strasse 2 Fax +49/89/41861-217 (What is a Fax?)
D-81673 MUENCHEN E-mail adrian.aichner(a)teradyne.com