$FreeBSD$ --- install.pl.orig +++ install.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!%%PERL%% -I %%PREFIX%%/libexec/nfsen # # # Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung @@ -81,33 +81,7 @@ # Get Perl sub GetPerl { - my $whichperl; - my $ans; - $whichperl = FindCommand("perl"); - if ( defined $whichperl ) { - print "Perl to use: [$whichperl] "; - chomp($ans = ); - if ( length $ans ) { - $whichperl = $ans; - } - } else { - print "No Perl found in your PATH. Please specify where to find perl [] "; - chomp($whichperl = ); - } - - while (1) { - if ( -x $whichperl ) { - my $err = system("$whichperl -e 'require 5.6.0;'") >> 8; - last if $err == 0; - print "Found errors while testing Perl\n"; - } else { - print "No executable: '$whichperl'\n"; - } - print "Perl to use: [] "; - chomp($whichperl = ); - } - - return $whichperl; + return "%%PERL%%"; } # End of GetPerl