File: mkranlib.sh

package info (click to toggle)
chasen 2.0-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 20,148 kB
  • ctags: 1,075
  • sloc: ansic: 10,112; perl: 408; lisp: 405; makefile: 287; sh: 55
file content (23 lines) | stat: -rwxr-xr-x 332 bytes parent folder | download
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

RANLIBS="/bin/ranlib /usr/bin/ranlib /usr/ucb/ranlib"
RANLIB=

for RANLIB1 in $RANLIBS
do
#	if [ -x "$RANLIB1" ]; then
	if [ -f "$RANLIB1" ]; then
		RANLIB=$RANLIB1
		break
	fi
done

if [ "$RANLIB" = "" ]; then
	RANLIB=`which ranlib`
	if [ "$RANLIB" = "" -o ! -x "$RANLIB" ]; then
		RANLIB=ls
	fi
fi

echo $RANLIB
exit 0