From 6e9c41a892ed0e0da326e0278b3221ce3f5713b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 6 Oct 2014 14:00:40 +0200 Subject: Initial import of sane-backends version 1.0.24-1.2 --- tools/libtool-get-dll-ext | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tools/libtool-get-dll-ext (limited to 'tools/libtool-get-dll-ext') 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 +# 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 " + 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 -- cgit v1.2.3