[Exherbo-dev] default_src_install

Ciaran McCreesh ciaran.mccreesh at blueyonder.co.uk
Mon Feb 4 22:41:31 GMT 2008


On Mon, 4 Feb 2008 22:22:12 +0000
David Leverton <levertond at googlemail.com> wrote:
> On Monday 04 February 2008 22:12:13 Ciaran McCreesh wrote:
> > if [[ -f Makefile ]] || [[ -f makefile ]] || [[ -f GNUmakefile ]] ;
> > then echo "Found a makefile, using the install target" 
> 
> I don't think the echos are terribly useful (or if we want them, we
> should add them to the other default functions too).

Mmm, src_test has them. I'd be inclined to make the others have them
too. Not like output is expensive.

> > for f in ${f1} $(echo ${f1} | tr '[[:upper:]]' '[[:lower:]]' ) ; do
> >     for s in '' .txt .txt ${DEFAULT_SRC_INSTALL_EXTRA_SUFFIXES} ; do
> >         for c in '' .gz .bz2
> > ${DEFAULT_SRC_INSTALL_EXTRA_COMPRESSIONS} ; do for  p in '' '0'
> > '00' ${DEFAULT_SRC_INSTALL_EXTRA_PREFIXES} ; do
> 
> I'm sort of tempted to suggest just *${f1}*, with shopt -s nocaseglob
> to catch the case variations.

I'm wary of that if only because it could match some really weird
stuff. Although it might be easier...

-- 
Ciaran McCreesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.exherbo.org/mailman/private/exherbo-dev/attachments/20080204/31b78fad/attachment.pgp 


More information about the Exherbo-dev mailing list