[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] teeny patch for e_modules autogen.sh



On Wednesday, 24 May 2006, at 09:55:05 (+0200),
Morten Nilsen wrote:

>  #!/bin/sh
>  
> +cache=`mktemp`
> +
>  for d in * ; do
>         test -d "$d" || continue
> -       sed "s,%MODNAME%,$d,g" e_modules-TEMPLATE.spec.in > "$d/e_modules-$d.spec.in"
>         test -x "${d}/autogen.sh" || continue
> +       sed "s,%MODNAME%,$d,g" e_modules-TEMPLATE.spec.in > "$d/e_modules-$d.spec.in"
>         echo "AUTOGEN:  $d"
> -       (cd $d && ./autogen.sh "$@") || exit 1
> +       (cd $d && ./autogen.sh --config-cache=$cache "$@") || exit 1
>  done
>  
>  cp -p configure.in configure

You realize this will create a separate "shared cache" file every time
it's run and never remove any of them....  I'd say that's a bad thing.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej@kainx.org>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "I am everything you want; I am everything you need.  I am everything
  inside of you that you wish you could be.  I say all the right
  things at exactly the right time, but I mean nothing to you and I
  don't know why."                   -- Vertical Horizon, "Everything"