Re: libraries of shell script functions

2008-09-18 Thread Paolo Bonzini
Bruno Haible wrote: Hi, If you want to contribute shell script functions to gnulib, we would need some kind of linker for shell scripts: A tool which combines a set of shell script fragments, each defining a number of functions, and a main script, into a complete, runnable shell script.

Re: libraries of shell script functions

2008-09-18 Thread Bruno Haible
Paolo Bonzini wrote: For now, I think Peter's select function could go in m4sh. m4 is the linker, then. How does one use m4 as the linker? Where is this documented? I also have some shell functions to contribute: - func_tmpdir - func_find_curr_installdir, func_find_prefixes

Re: libraries of shell script functions

2008-09-18 Thread Paolo Bonzini
Bruno Haible wrote: Paolo Bonzini wrote: For now, I think Peter's select function could go in m4sh. m4 is the linker, then. How does one use m4 as the linker? Where is this documented? You write your script in m4sh, not in pure Bourne shell. The m4sh-sh conversion is done with autom4te.

Re: libraries of shell script functions

2008-09-18 Thread Karl Berry
Subject: Re: libraries of shell script functions I just thought I should mention that Ralf Engelschall maintains GNU shtool which is somewhat along these lines. http://www.gnu.org/software/shtool/ I had never heard of it myself before I noticed his release this summer.

Re: libraries of shell script functions

2008-09-17 Thread Bruno Haible
Hi, If you want to contribute shell script functions to gnulib, we would need some kind of linker for shell scripts: A tool which combines a set of shell script fragments, each defining a number of functions, and a main script, into a complete, runnable shell script. Does someone already have

Re: libraries of shell script functions

2008-09-17 Thread Peter Seebach
In message [EMAIL PROTECTED], Bruno Haible writes: If you want to contribute shell script functions to gnulib, we would need some kind of linker for shell scripts: A tool which combines a set of shell script fragments, each defining a number of functions, and a main script, into a complete,

Re: libraries of shell script functions

2008-09-17 Thread Matthew Woehlke
Bruno Haible wrote: If you want to contribute shell script functions to gnulib, we would need some kind of linker for shell scripts: A tool which combines a set of shell script fragments, each defining a number of functions, and a main script, into a complete, runnable shell script. Does someone