unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Compilation Helper
@ 2006-03-16 21:37 Daniel 'NebuchadnezzaR' Dehennin
  2006-03-17  2:06 ` Nick Roberts
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel 'NebuchadnezzaR' Dehennin @ 2006-03-16 21:37 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]

Hello,

Following the great DVC development, I made some adaptations to the
dgnushack.el, for now it's called package-maint.el, if you have a
better ideas for the name, thanks to submit... ;-)

The goal is to make it more general, it can group some common tricks
for GNU Emacs vs. XEmacs and specificities about versions.

A package maintainer must provide a package-specific helper wich
require package-maint.el and set the package-maint-pkg variable which
is the actual package name, it's used for autoloads.

Taking DVC as an example, we have in the Makefile:
FLAGS = -batch -q -no-site-file -no-init-file -l $(srcdir)/dvc-build.el

EMACS_COMP = lispdir=$(lispdir) srcdir=$(srcdir) $(EMACS_PROG) $(FLAGS)

all: clean dvc-load.el
        $(EMACS_COMP) -f package-maint-compile


dvc-load.el:
        $(EMACS_COMP) -f package-maint-make-cus-load $(srcdir)
        $(EMACS_COMP) -f package-maint-make-auto-load $(srcdir)
        $(EMACS_COMP) -f package-maint-make-load


dvc-build.el do package specific stuffs like adding or removing .el
files, depending of the presence or not of a library.

I submit this to Lars Magne Ingebrigtsen, he suggest me to post this
to Emacs and XEmacs mailing lists.

So now, I'm waiting your comments/ideas/what you want.

Attached are the dvc-build.el and package-maint.el.

Regards.
-- 
Daniel 'NebuchadnezzaR' Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x2A408F69

[-- Attachment #2: dvc-build.el --]
[-- Type: application/emacs-lisp, Size: 4448 bytes --]

[-- Attachment #3: package-maint.el --]
[-- Type: application/emacs-lisp, Size: 15310 bytes --]

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Compilation Helper
  2006-03-16 21:37 Compilation Helper Daniel 'NebuchadnezzaR' Dehennin
@ 2006-03-17  2:06 ` Nick Roberts
  2006-03-17 15:42   ` Daniel 'NebuchadnezzaR' Dehennin
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Roberts @ 2006-03-17  2:06 UTC (permalink / raw)
  Cc: emacs-devel

 > Following the great DVC development, 

What is DVC?

 >                                      I made some adaptations to the
 > dgnushack.el, for now it's called package-maint.el, if you have a
 > better ideas for the name, thanks to submit... ;-)

What does dgnushack.el do?

 > The goal is to make it more general, it can group some common tricks
 > for GNU Emacs vs. XEmacs and specificities about versions.

How does this relate to Emacs development?

 > A package maintainer must provide a package-specific helper wich
 > require package-maint.el and set the package-maint-pkg variable which
 > is the actual package name, it's used for autoloads.

You've lost me.

 Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compilation Helper
  2006-03-17  2:06 ` Nick Roberts
@ 2006-03-17 15:42   ` Daniel 'NebuchadnezzaR' Dehennin
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel 'NebuchadnezzaR' Dehennin @ 2006-03-17 15:42 UTC (permalink / raw)


Le 4580 Septembre 1993, Nick Roberts a tapoté:
>  > Following the great DVC development, 
>
> What is DVC?

Distributed Version Control, an evolution of Xtla with more tools
supported (bzr, mercurial, darcs): http://wiki.gnuarch.org/xtla#DVC

>
>  >                                      I made some adaptations to the
>  > dgnushack.el, for now it's called package-maint.el, if you have a
>  > better ideas for the name, thanks to submit... ;-)
>
> What does dgnushack.el do?

dgnushack.el handle autoloads generation and byte-compilation of Gnus.


>  > The goal is to make it more general, it can group some common tricks
>  > for GNU Emacs vs. XEmacs and specificities about versions.
>
> How does this relate to Emacs development?

Such tool may be integrated to Emacs to help package maintainer, it
simplify packages Makefiles and permit code reuse, it can handle well
know tricks for version compatibilities GNU Emacs vs. XEmacs.

>  > A package maintainer must provide a package-specific helper wich
>  > require package-maint.el and set the package-maint-pkg variable which
>  > is the actual package name, it's used for autoloads.
>
> You've lost me.

I'm really sorry, I'll try to do better:

In DVC we had static build dependencies in Makefiles.

Now, we provide a dvc-build.el which define the package name and
require package-maint.

So in Makfile we can call package-maint-make-{cus,auto}-load and
package-maint-compile.

It avoids complex rules in Makefile, dependencies are automatically
resolved, and when some files are changed, it clean their .elc files
and .elc files which depends on previous...

Hope it's better, I don't want to make you waste your time ;-).

Regards.
-- 
Daniel 'NebuchadnezzaR' Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x2A408F69

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-17 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-16 21:37 Compilation Helper Daniel 'NebuchadnezzaR' Dehennin
2006-03-17  2:06 ` Nick Roberts
2006-03-17 15:42   ` Daniel 'NebuchadnezzaR' Dehennin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).