From: <ai...@us...> - 2007-11-24 22:28:04
|
Revision: 8038 http://plplot.svn.sourceforge.net/plplot/?rev=8038&view=rev Author: airwin Date: 2007-11-24 14:28:00 -0800 (Sat, 24 Nov 2007) Log Message: ----------- This autotools-related script is no longer used, but it might be of historical interest so move it to the old directory. Added Paths: ----------- trunk/old/get-dependency-libs.sh Removed Paths: ------------- trunk/scripts/get-dependency-libs.sh Copied: trunk/old/get-dependency-libs.sh (from rev 8033, trunk/scripts/get-dependency-libs.sh) =================================================================== --- trunk/old/get-dependency-libs.sh (rev 0) +++ trunk/old/get-dependency-libs.sh 2007-11-24 22:28:00 UTC (rev 8038) @@ -0,0 +1,53 @@ +#!/bin/sh +# +# $Id$ +# Generate appropriate LIBS line for pkg-config by parsing libtool *.la files +# +# Copyright (C) 2004 Rafael Laboissiere +# +# This file is part of PLplot. +# +# PLplot is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Library Public License as published +# by the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# PLplot is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public License +# along with PLplot; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + +if test $# != 1 ; then + echo 2>1 "Usage: $0 path/to/libfoo.la" + exit 1 +fi + +result= + +for lib in `grep ^dependency_libs= $1 \ + | sed 's/^dependency_libs=//' | sed "s/'//g"` ; do + + case $lib in + + -l* | -L* ) + result="$result $lib" + ;; + + *.la) + path=`echo $lib | sed 's:/*lib[^/]*.la::'` + libname=`echo $lib | sed 's:^.*/lib::' | sed 's/\.la//'` + result="$result -L$path" + test -d $path/.libs && result="$result -L$path/.libs" + result="$result -l$libname" + ;; + + esac + +done + +echo $result Deleted: trunk/scripts/get-dependency-libs.sh =================================================================== --- trunk/scripts/get-dependency-libs.sh 2007-11-24 22:16:56 UTC (rev 8037) +++ trunk/scripts/get-dependency-libs.sh 2007-11-24 22:28:00 UTC (rev 8038) @@ -1,53 +0,0 @@ -#!/bin/sh -# -# $Id$ -# Generate appropriate LIBS line for pkg-config by parsing libtool *.la files -# -# Copyright (C) 2004 Rafael Laboissiere -# -# This file is part of PLplot. -# -# PLplot is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Library Public License as published -# by the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# PLplot is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public License -# along with PLplot; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - -if test $# != 1 ; then - echo 2>1 "Usage: $0 path/to/libfoo.la" - exit 1 -fi - -result= - -for lib in `grep ^dependency_libs= $1 \ - | sed 's/^dependency_libs=//' | sed "s/'//g"` ; do - - case $lib in - - -l* | -L* ) - result="$result $lib" - ;; - - *.la) - path=`echo $lib | sed 's:/*lib[^/]*.la::'` - libname=`echo $lib | sed 's:^.*/lib::' | sed 's/\.la//'` - result="$result -L$path" - test -d $path/.libs && result="$result -L$path/.libs" - result="$result -l$libname" - ;; - - esac - -done - -echo $result This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |