]> git.openfabrics.org - ~vlad/build.git/commitdiff
build.pl: enable build to be running from any directory
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 16 Feb 2010 09:40:38 +0000 (11:40 +0200)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 16 Feb 2010 09:42:58 +0000 (11:42 +0200)
There is no need to change dir to the build project

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
build.pl

index dbd81a0e609bd0ef244e3819b83348fb2802006c..1cf8350c891a72691ff51540cd8f848ff1165b09 100755 (executable)
--- a/build.pl
+++ b/build.pl
@@ -32,6 +32,8 @@ use File::Copy;
 use Cwd;
 use Term::ANSIColor qw(:constants);
 
+my $WDIR    = dirname($0);
+chdir $WDIR;
 my $CWD = getcwd;
 my $GIT = 'git';
 my $GIT_VERSION = `$GIT --version`;