#!/bin/sh
# (c) Christian Renz $RED No system information found: $UNAME failed $NORED System information (retrieved using $UNAME):
$SYSINFO Searching for perl interpreters installed on your
system. This may take a few seconds. "
# Using locate...
METHOD="$LOCATE / $GREP"
PERLFOUND=`$LOCATE "$PERLSHEX" | $GREP "$PERLREGEX"`
# Using which...
if [ -z "$PERLFOUND" ]; then
echo " $RED $METHOD failed. $NORED Using $WHICH instead. "
METHOD="$WHICH"
for i in $PERLNAMES; do
# echo "Searching for '$i'... $RED $METHOD failed. $NORED Using search in $FALLBACK
instead. $RED Sorry, I was unable to find any perl
interpreter.$NORED Probably something went horribly wrong. Contact your
server administrator for assistance. perl interpreters found using $METHOD:
findPerl
'
# find out some system information
SYSINFO=`$UNAME -a`
if [ -z "$SYSINFO" ]; then
echo "
"
THISFOUND=`$WHICH $i`
if [ "$THISFOUND" ]; then
PERLFOUND="$PERLFOUND $THISFOUND"
fi
done
fi
# Using fallback paths...
if [ -z "$PERLFOUND" ]; then
echo ""
for i in $REALPERL; do
if [ -f "$i" -a -x "$i" ]; then
p=`$i -e 'print "$]
Library paths:
" . join("
", @INC) . ""'`
echo "
Version: $p