automake
[Top][All Lists]
Advanced

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

--print-libdir request


From: Thien-Thi Nguyen
Subject: --print-libdir request
Date: Tue, 17 Apr 2007 09:14:37 +0200

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

[Prev in Thread] Current Thread [Next in Thread]