2015-02-26 15:02:31 +00:00
|
|
|
#! /usr/bin/perl
|
|
|
|
# install_user tells users to add Trick's bin to their path.
|
|
|
|
|
|
|
|
# $Id: install_user 3792 2015-02-03 21:51:57Z alin $
|
|
|
|
use File::Basename ;
|
|
|
|
use Cwd 'abs_path';
|
|
|
|
|
|
|
|
$trick_bin = dirname(abs_path($0)) ;
|
|
|
|
$trick_home = dirname($trick_bin) ;
|
|
|
|
|
2015-03-11 13:14:46 +00:00
|
|
|
print "if you use bash add this line to your .bashrc\n" ;
|
|
|
|
print "export PATH=\"\${PATH}:$trick_home/bin\"\n\n" ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2015-03-11 13:14:46 +00:00
|
|
|
print "if you use [t]csh add this line to your .cshrc\n" ;
|
|
|
|
print "setenv PATH \"\${PATH}:$trick_home/bin\"\n" ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|