pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/scripts Remove unused scripts/shlib-type script.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9b3a5f7bfb2
branches:  trunk
changeset: 363124:c9b3a5f7bfb2
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jun 01 13:30:52 2017 +0000

description:
Remove unused scripts/shlib-type script.

The platform/${OPSYS}.mk files now use platform-specific code to
set ${_OPSYS_SHLIB_TYPE} which is the default value for
${SHLIB_TYPE}.  All previous uses of this script to detect the
native shared library type or native executable format have been
removed from pkgsrc.

diffstat:

 mk/scripts/shlib-type |  46 ----------------------------------------------
 1 files changed, 0 insertions(+), 46 deletions(-)

diffs (50 lines):

diff -r 039d08d48b9a -r c9b3a5f7bfb2 mk/scripts/shlib-type
--- a/mk/scripts/shlib-type     Thu Jun 01 13:30:24 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-# /bin/sh
-#
-# $NetBSD: shlib-type,v 1.3 2007/08/02 16:00:33 jlam Exp $
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Alistair Crooks.
-#
-# This script returns the the library format for the platform.  If
-# the library format is "ELF/a.out", then we inspect the specified
-# path to determine the correct object format (either ELF or a.out).
-#
-
-if [ -z "${FILE_CMD}" ]; then
-       FILE_CMD=file
-fi
-
-if [ $# -lt 2 ]; then
-       echo 1>&2 "usage: shlib-type libformat binpath"
-       exit 1
-fi
-
-libformat="$1"
-binpath="$2"
-
-sotype=none
-case "$1" in
-ELF/a.out)
-       if [ -f "$binpath" ]; then
-               output=`${FILE_CMD} $binpath 2>/dev/null`
-       else
-               output=
-       fi
-       case "$output" in
-       *ELF*dynamically*)      sotype="ELF" ;;
-       *shared*library*)       sotype="a.out" ;;
-       *dynamically*)          sotype="a.out" ;;
-       *)                      sotype="ELF" ;;         # guess "ELF"
-       esac
-       ;;
-*)
-       sotype="$1"
-       ;;
-esac
-echo $sotype
-
-exit 0



Home | Main Index | Thread Index | Old Index