From fff24f9ebde4c605f9cb390ed5ef939801a25cfa Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 21 Oct 2005 20:40:58 +0000 Subject: r11249: More OpenBSD make fixes... (This used to be commit 118e3bc507b2694f7e5ea191950626931d8ebf29) --- source4/build/smb_build/makefile.pm | 5 ++++- source4/build/smb_build/output.pm | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/build/smb_build') diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index 06f98446bb..6f0cf6e189 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -182,7 +182,10 @@ sub _prepare_manpages($) my @mp_list = (); foreach (values %$ctx) { - push (@mp_list, "$_->{BASEDIR}/$_->{MANPAGE}") if (defined($_->{MANPAGE}) and $_->{MANPAGE} ne ""); + my $dir = $_->{BASEDIR}; + next unless defined($dir); + $dir =~ s/^\.\///g; + push (@mp_list, "$dir/$_->{MANPAGE}") if (defined($_->{MANPAGE}) and $_->{MANPAGE} ne ""); } my $mp = array2oneperline(\@mp_list); diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm index 46e8ffb0c5..309a027947 100644 --- a/source4/build/smb_build/output.pm +++ b/source4/build/smb_build/output.pm @@ -14,6 +14,8 @@ sub add_dir($$) { my ($dir,$files) = @_; my @ret = (); + + $dir =~ s/^\.\///g; foreach (@$files) { $_ = "$dir/$_"; -- cgit