# Exits with 1 if Perl is not on the PATH ## ---- Check Perl exists ---- perlpath= # Some users may set the above line manually if [ "x$perlpath" = "x" ]; then # Check if Perl is on the search path perlpath=`which perl 2> /dev/null` fi # Check that a Perl executable has been found echo "Perl:" if [ ! -x "$perlpath" ] ; then echo if [ "$glilang" = "es" ]; then echo "La Interfaz de la $PROGNAME requiere Perl para " echo "poder operar, pero éste no aparece en su sistema. Por favor asegúrese " echo "de que Perl está instalado y se encuentra en su ruta de búsqueda. A " echo "continuación ejecute nuevamente este guión." elif [ "$glilang" = "fr" ]; then echo "$PROGNAME nécessite Perl pour son fonctionnement," echo "mais perl n'a pas pu être détecté dans votre système. Veuillez vous " echo "assurer que perl est installé et est spécifié dans votre chemin de " echo "recherche, puis redémarrez ce script." elif [ "$glilang" = "ru" ]; then echo "âÉÂÌÉÏÔÅÞÎÙÊ $PROGNAME ÔÒÅÂÕÅÔ Perl, ÞÔÏÂÙ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ" echo "ÒÁÂÏÔÁÔØ, ÎÏ Perl ÎÅ ÂÙÌ × ×ÁÛÅÊ ÓÉÓÔÅÍÅ. ðÏÖÁÌÕÊÓÔÁ, ÐÏÄÔ×ÅÒÄÉÔÅ, ÞÔÏ " echo "Perl ÕÓÔÁÎÏ×ÌÅÎ É ÎÁÈÏÄÉÔÓÑ ÎÁ ×ÁÛÅÍ ÐÕÔÉ ÐÏÉÓËÁ, ÚÁÔÅÍ ÐÏ×ÔÏÒÎÏ××ÅÄÉÔÅ" echo "ÜÔÏÔ ÓËÒÉÐÔ." else echo "The $PROGNAME requires Perl in order to operate," echo "but perl could not be detected on your system. Please ensure that perl" echo "is installed and is on your search path, then rerun this script." fi exit 1 fi echo $perlpath echo