Last change
on this file since 662 was
28,
checked in by arnault, 20 years ago
|
Set exe bits to *.sh
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
693 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | if test ! "${CMT_WHICH}" = "" ; then |
---|
4 | echo ${CMT_WHICH} |
---|
5 | exit 0 |
---|
6 | fi |
---|
7 | |
---|
8 | which cat 1>/dev/null 2>/dev/null |
---|
9 | yes="$?" |
---|
10 | which abcdefghijklmnopqrstuvwxyz 1>/dev/null 2>/dev/null |
---|
11 | no="$?" |
---|
12 | if test "${yes}" = 0 -a "${no}" = 0 ; then |
---|
13 | type cat 1>/dev/null 2>/dev/null |
---|
14 | yes="$?" |
---|
15 | type abcdefghijklmnopqrstuvwxyz 1>/dev/null 2>/dev/null |
---|
16 | no="$?" |
---|
17 | if test "${yes}" = 0 -a "${no}" = 0 ; then |
---|
18 | /usr/bin/type cat 1>/dev/null 2>/dev/null |
---|
19 | yes="$?" |
---|
20 | /usr/bin/type abcdefghijklmnopqrstuvwxyz 1>/dev/null 2>/dev/null |
---|
21 | no="$?" |
---|
22 | if test "${yes}" = 0 -a "${no}" = 0 ; then |
---|
23 | exit 1 |
---|
24 | else |
---|
25 | echo "/usr/bin/type" |
---|
26 | fi |
---|
27 | else |
---|
28 | echo "type" |
---|
29 | fi |
---|
30 | else |
---|
31 | echo "which" |
---|
32 | fi |
---|
33 | |
---|
34 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.