root/foundation-apps/mxterm-maxx/plink.sh

Revision 8, 503 bytes (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1#!/bin/sh
2# $XTermId: plink.sh,v 1.4 2005/05/03 00:38:24 tom Exp $
3# $XFree86: xc/programs/xterm/plink.sh,v 3.2 2005/05/03 00:38:24 dickey Exp $
4#
5# Reduce the number of dynamic libraries used to link an executable.
6LINKIT=
7while test $# != 0
8do
9        OPT="$1"
10        shift
11        case $OPT in
12        -l*)
13                echo "testing if $OPT is needed"
14                if ( eval $LINKIT $* >/dev/null 2>/dev/null )
15                then
16                        : echo ...no
17                else
18                        echo ...yes
19                        LINKIT="$LINKIT $OPT"
20                fi
21                ;;
22        *)
23                LINKIT="$LINKIT $OPT"
24                ;;
25        esac
26done
27eval $LINKIT
Note: See TracBrowser for help on using the browser.