diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-12-02 19:15:44 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-12-07 15:53:05 +0100 |
commit | 2e4ef99b10e27cbfb13a3bca7faf0b767927ec4a (patch) | |
tree | 23b0be48216805525f701feff34cd060ae410f6f /solenv/bin | |
parent | 822115263098112fb8aa4505ccb8e0ee15e4d261 (diff) |
use File::Spec instead of Cwd
Diffstat (limited to 'solenv/bin')
-rwxr-xr-x | solenv/bin/concat-deps.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/bin/concat-deps.pl b/solenv/bin/concat-deps.pl index 82910c7270a1..935a50c68daa 100755 --- a/solenv/bin/concat-deps.pl +++ b/solenv/bin/concat-deps.pl @@ -2,7 +2,7 @@ # reads a list of dependency files from a file, opens and # concatenates them, while eliding duplicate nop rules. -use Cwd 'fast_abs_path'; +use File::Spec; sub read_depfiles($) { @@ -33,7 +33,7 @@ sub canonicalize_path($) my $path = $2; my $post =$3; if (length($path) > 0 && index($path,$ENV{SRCDIR}) == 0) { - $path = Cwd::fast_abs_path($2); + $path = File::Spec->rel2abs($2); $path = "\$(SRCDIR)" . substr($path, length($ENV{SRCDIR})); } #print "## $pre$path$post"; |