Kaydet (Commit) 708def7d authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Fix ooinstall -l case

Removing destdir prefix for dev-install case is not a good idea
üst ca718e36
......@@ -28,11 +28,13 @@ for $arg (@ARGV) {
} elsif ($arg eq '-h' || $arg eq '--help') {
$help = 1;
} else {
# Cwd::realpath does not work if the path does not exist
mkpath($ENV{DESTDIR} . $arg) unless -d $ENV{DESTDIR} . $arg;
$path = Cwd::realpath( $ENV{DESTDIR} . $arg );
my $destdir = Cwd::realpath( $ENV{DESTDIR} );
$path =~ s|$destdir||;
# Cwd::realpath does not work if the path does not exist
mkpath($ENV{DESTDIR} . $arg) unless -d $ENV{DESTDIR} . $arg;
$path = Cwd::realpath( $ENV{DESTDIR} . $arg );
if (!$do_link) {
my $destdir = Cwd::realpath( $ENV{DESTDIR} );
$path =~ s|$destdir||;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment