zsh-workers
 help / color / mirror / code / Atom feed
* building modules outside the source tree
@ 2006-03-26  0:33 Clint Adams
  2006-03-26  6:29 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2006-03-26  0:33 UTC (permalink / raw)
  To: zsh-workers

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

This is a bit ugly.  Right now, I've got a prototype zsh-dev which
contains the following.

/usr/include/zsh:
builtin.epro    init.epro      mem.epro      sigcount.h     utils.epro
compat.epro     input.epro     module.epro   signals.epro   watch.epro
cond.epro       jobs.epro      options.epro  signals.h      zsh.h
exec.epro       lex.epro       params.epro   signames.epro  ztype.h
glob.epro       linklist.epro  parse.epro    string.epro
hashtable.epro  loop.epro      pattern.epro  subst.epro
hashtable.h     main.epro      prompt.epro   system.h
hist.epro       math.epro      prototypes.h  text.epro

/usr/share/zsh-dev:
makepro.awk

All of those are copied unchanged from the object directory of a
successful build of zsh.

For a proof-of-concept, I've adapted a little utility which reads an Ogg
Vorbis file and outputs its length in seconds and the comments/tags.

I've only tried it on one platform, but it works for me.  Beyond the
autotools (and other) sloppiness, probably the most objectionable thing
is that I've copied config.h and zsh.mdh from the zsh build dir.
config.h is pristine, but zsh.mdh is edited to cope with path changes
and to add vorbis.mdh.  vorbis.mdh is example.mdh copied and passed
through a search&replace.

I'm attaching the tarball in case anyone wants to see.  It's currently
necessary to hand-force -I/usr/include/zsh into CPPFLAGS.

[-- Attachment #2: zomgvorbis-0.0.tar.gz --]
[-- Type: application/octet-stream, Size: 249199 bytes --]

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

* Re: building modules outside the source tree
  2006-03-26  0:33 building modules outside the source tree Clint Adams
@ 2006-03-26  6:29 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2006-03-26  6:29 UTC (permalink / raw)
  To: zsh-workers

On Mar 25,  7:33pm, Clint Adams wrote:
}
} This is a bit ugly.  [...]
} For a proof-of-concept, I've adapted a little utility which reads an Ogg
} Vorbis file and outputs its length in seconds and the comments/tags.

Please keep us posted on how far you get with this ... some software I
have is practically begging to be turned into a zsh module, but I have
not yet managed to get the two configure scripts to play together.

} probably the most objectionable thing
} is that I've copied config.h and zsh.mdh from the zsh build dir.

zsh.mdh isn't so bad, but config.h should be reduced to the parts that
are directly involved in module linking -- or better yet, there should
be a fragment of aczsh.m4 that could be incorporated into third-party
configure scripts.


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

end of thread, other threads:[~2006-03-26  6:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-26  0:33 building modules outside the source tree Clint Adams
2006-03-26  6:29 ` Bart Schaefer

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

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).