2000-08-12 15:11:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Author: Petter Reinholdtsen <pere@td.org.uit.no>
|
|
|
|
# Date: 2000-03-18
|
|
|
|
#
|
2020-08-29 06:44:47 +00:00
|
|
|
# Given a libtool lib*.la, return the dll extension used (ie. so, sl,
|
2000-08-12 15:11:46 +00:00
|
|
|
# dll, etc)
|
|
|
|
if test "x$1" = x; then
|
|
|
|
echo "usage: $0 <libfile.la>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
lafile=$1
|
|
|
|
|
|
|
|
libnames=`grep library_names= $lafile`
|
2006-07-25 18:34:44 +00:00
|
|
|
last=`echo $libnames | cut -d\' -f2|tr " " "\n"|tail -n 1`
|
2000-08-12 15:11:46 +00:00
|
|
|
dllend=`echo $last | cut -d. -f2`
|
|
|
|
|
|
|
|
echo $dllend
|