make install incomplete

Perl scripts linked into /usr/local/bin or anyother directory needs
to use FindBin qw($RealBin) instead of just FindBin qw($Bin).  Realpath
will find the absolute path to where the script actually lives and the
pm directory that holds the perl modules.
This commit is contained in:
Alex Lin 2015-04-06 14:31:58 -05:00
parent 24a081a32b
commit 871c6904d5
6 changed files with 12 additions and 12 deletions

View File

@ -8,8 +8,8 @@ use Pod::Usage ;
use Pod::Text ;
use Cwd 'abs_path';
use FindBin qw($Bin);
use lib "$Bin/pm" ;
use FindBin qw($RealBin);
use lib "$RealBin/pm" ;
use parse_s_define ;
use get_headers ;

View File

@ -1,11 +1,11 @@
#!/usr/bin/perl
use FindBin qw($Bin);
use FindBin qw($RealBin);
use strict ;
use Getopt::Long;
use Pod::Usage;
use Pod::Text;
use lib "$Bin/pm" ;
use lib "$RealBin/pm" ;
use ICG ;
use trick_print ;
use trick_version ;

View File

@ -1,8 +1,8 @@
#!/usr/bin/perl
use strict ;
use FindBin qw($Bin);
use lib "$Bin/pm" ;
use FindBin qw($RealBin);
use lib "$RealBin/pm" ;
use Getopt::Long ;
use Pod::Usage ;
use Pod::Text ;

View File

@ -1,12 +1,12 @@
#!/usr/bin/perl
use FindBin qw($Bin);
use FindBin qw($RealBin);
use strict ;
use Getopt::Long;
use Pod::Usage;
use Pod::Text;
use Text::Balanced qw ( extract_bracketed );
use lib "$Bin/pm" ;
use lib "$RealBin/pm" ;
use File::Basename ;
use Cwd 'abs_path' ;
use gte ;

View File

@ -4,8 +4,8 @@ use File::Basename ;
use strict ;
use Cwd ;
use FindBin qw($Bin);
use lib "$Bin/pm" ;
use FindBin qw($RealBin);
use lib "$RealBin/pm" ;
use cp_cache ;

View File

@ -2,8 +2,8 @@
# trick_dp that determines trick_home based on execution location of this script.
use FindBin qw($Bin);
use lib "$Bin/pm" ;
use FindBin qw($RealBin);
use lib "$RealBin/pm" ;
use File::Basename ;
use Cwd 'abs_path';
use gte ;