some of my autogen.sh (bootstrap script) files use the construct:

  amprefix=`automake --help | sed '/^Usage:/!d;s/Usage: //;s,/bin/automake.*,,'`
  amlibdir=`ls -d ${amprefix}/share/automake-* | tail -1`
  
  for f in install-sh INSTALL COPYING ; do
    ln -sf ${amlibdir}/$f
  done

this is not reliable (ls | tail assumes too much), so i was wondering if
automake might support some option to print its libdir to stdout, so that i
could do:

  amlibdir=`automake --print-libdir`
  for f in install-sh INSTALL COPYING ; do
    ln -sf ${amlibdir}/$f
  done

or perhaps there is already something available to achieve the same goals,
with automake 1.9?

thi


Reply via email to