Error making pot file.

Derek Atkins warlord at MIT.EDU
Tue Jan 3 16:21:53 EST 2006


Quoting Neil Williams <linux at codehelp.co.uk>:

> No problem - I'm just not sure how to achieve it.
>
>> If
>> ${top_srcdir}/Makefile.am is a symlink, can we follow that symlink and
>> run from there?
>
> Do you mean use cd to go to ${top_srcdir} first?
> Or the set the redirect to go to ${top_srcdir}/po/POTFILES.in ?

I meant something like this:

  s=${top_srcdir}
  if [ -h $s/Makefile.am ] ; then
    d=`readlink $(top_srcdir)/Makefile.am`
    s="${top_srcdir}/`dirname $d`"
  fi
  mpo=`pwd`/${top_srcdir}/make-gnucash-potfiles
  (cd $s; $mpo) > po/POTFILES.in

>> This would also allow this process to work in an
>> "lndir tree".
>
> I did try that at this end and it appeared to work OK - unchanged.

Did you have dangling symlinks in the lndir tree?   Another option
would be a make target that would clean out dangling symlinks.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-devel mailing list