[Exherbo-dev] default_src_install

David Leverton levertond at googlemail.com
Mon Feb 4 22:22:12 GMT 2008


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).

> 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.



More information about the Exherbo-dev mailing list