Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 90834
Collapse All | Expand All

(-)xterm-200/plink.sh (-6 / +6 lines)
Lines 1-8 Link Here
1
#!/bin/sh
1
#!/bin/sh -x
2
# $XFree86: xc/programs/xterm/plink.sh,v 3.1 2001/03/13 09:48:43 dickey Exp $
2
# $XFree86: xc/programs/xterm/plink.sh,v 3.1 2001/03/13 09:48:43 dickey Exp $
3
#
3
#
4
# Reduce the number of dynamic libraries used to link an executable.
4
# Reduce the number of dynamic libraries used to link an executable.
5
CMD=
5
C=
6
while test $# != 0
6
while test $# != 0
7
do
7
do
8
	OPT="$1"
8
	OPT="$1"
Lines 10-26 Link Here
10
	case $OPT in
10
	case $OPT in
11
	-l*)
11
	-l*)
12
		echo "testing if $OPT is needed"
12
		echo "testing if $OPT is needed"
13
		if ( eval $CMD $* >/dev/null 2>/dev/null )
13
		if ( eval $C $* >/dev/null 2>/dev/null )
14
		then
14
		then
15
			: echo ...no
15
			: echo ...no
16
		else
16
		else
17
			echo ...yes
17
			echo ...yes
18
			CMD="$CMD $OPT"
18
			C="$C $OPT"
19
		fi
19
		fi
20
		;;
20
		;;
21
	*)
21
	*)
22
		CMD="$CMD $OPT"
22
		C="$C $OPT"
23
		;;
23
		;;
24
	esac
24
	esac
25
done
25
done
26
eval $CMD
26
eval $C

Return to bug 90834