libtool
[Top][All Lists]
Advanced

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

Problem with post(un)install cmds


From: Duft Markus
Subject: Problem with post(un)install cmds
Date: Mon, 22 Jan 2007 08:22:04 +0100

Hi!

I wrote the following two for libtool 1.5.22 and they worked perfectly.
Now i just copied them over to libtool 2.1a (CVS HEAD), and it doesn't
seem to work (the directory structure is the same, so this is ok...). I
believe that there is a difference in how libtool executes these code
snippets, is this correct?? If yes, how can i adapt this, so it works
with  libtool 2?

    postinstall_cmds='base_file=`basename \${file}`~
        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo
\$dlname'\''`~
        dldir=$destdir/`dirname \$dlpath` ~
        set dummy `ls -l $dir/\$dlname*.dll` ~
        while test -n "\${3}" ; do shift; done ~
        dllname=`basename ${2}` ~
        test -d \${dldir}/../bin || mkdir -p \${dldir}/../bin ~
        $install_prog $dir/$dllname \$dldir/../bin/$dllname ~
        chmod a+x \$dldir/../bin/$dllname'

    postuninstall_cmds='dlpath=`$SHELL 2>&1 -c '\''. $file; echo
\$dlname'\''`~
        set dummy `ls -l $dir/../bin/\$dlname*.dll` ~
        while test -n "\${3}" ; do shift; done ~
        $rm ${2}'


Thanks in Advance,
Cheers, Markus




reply via email to

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