Changeset 5 in ProjectBuilder for devel/pb/lib/toolhome.pm
- Timestamp:
- Jul 29, 2007, 12:50:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/toolhome.pm
r2 r5 1 1 #!/usr/bin/perl -w 2 2 # 3 # Module to compute TOOLHOMEand put in the environment3 # Module to compute PBROOT and put in the environment 4 4 # 5 5 # $Id$ … … 17 17 #print "$tmp\n"; 18 18 if ($tmp =~ /^\//) { 19 $ENV{' TOOLHOME'} = $tmp;19 $ENV{'PBROOT'} = $tmp; 20 20 } 21 21 else { 22 $ENV{' TOOLHOME'} = "$ENV{PWD}/$tmp";22 $ENV{'PBROOT'} = "$ENV{PWD}/$tmp"; 23 23 } 24 24 25 die " TOOLHOME doesn't exist" if (not (defined $ENV{'TOOLHOME'}));25 die "PBROOT doesn't exist" if (not (defined $ENV{'PBROOT'})); 26 26 } 27 27 1;
Note:
See TracChangeset
for help on using the changeset viewer.