ranlib.sh 240 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/bin/sh

cwd=`pwd`
cd /tmp

if [ -s /bin/ranlib ] ; then 
	RL=/bin/ranlib
else if [ -s /usr/bin/ranlib ] ; then
	RL=/usr/bin/ranlib
fi
fi

if [ "x$RL" != "x" ]
then
	case "$1" in
		/*)  
		$RL "$1"
		;;
		*)
		$RL "$cwd/$1"
		;;
	esac
fi