diff options
Diffstat (limited to 'tools/libtool-get-dll-ext')
-rwxr-xr-x | tools/libtool-get-dll-ext | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/libtool-get-dll-ext b/tools/libtool-get-dll-ext new file mode 100755 index 0000000..722e676 --- /dev/null +++ b/tools/libtool-get-dll-ext @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Author: Petter Reinholdtsen <pere@td.org.uit.no> +# Date: 2000-03-18 +# +# Given a libtool lib*.la, return the dll extention used (ie. so, sl, +# dll, etc) +if test "x$1" = x; then + echo "usage: $0 <libfile.la>" + exit 1 +fi + +lafile=$1 + +libnames=`grep library_names= $lafile` +last=`echo $libnames | cut -d\' -f2|tr " " "\n"|tail -n 1` +dllend=`echo $last | cut -d. -f2` + +echo $dllend |