r11245: Hopefully fix heimdal build on some hosts
authorJelmer Vernooij <jelmer@samba.org>
Fri, 21 Oct 2005 18:10:45 +0000 (18:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:45:06 +0000 (13:45 -0500)
Fix manpage locations
(This used to be commit 33c71c0fb13b55741f1b1fffc8945ccda6f3bf51)

source4/build/smb_build/makefile.pm
source4/script/cflags.sh

index 6f9615baa84bca618bff071b39b02efd49c64847..1759f8645d5de878b25c9016f363be0bb4062b00 100644 (file)
@@ -191,7 +191,7 @@ sub _prepare_manpages($)
        my @mp_list = ();
 
        foreach (values %$ctx) {
-               push (@mp_list, $_->{MANPAGE}) if (defined($_->{MANPAGE}) and $_->{MANPAGE} ne "");
+               push (@mp_list, "$_->{BASEDIR}/$_->{MANPAGE}") if (defined($_->{MANPAGE}) and $_->{MANPAGE} ne "");
        }
        
        my $mp = array2oneperline(\@mp_list);
index b2ee8b3761fdee734a50caf0f7e2998ee979e042..dc7bd794c6a0f4d9fe5beec2a888a711a420b8ac 100755 (executable)
@@ -11,7 +11,7 @@ check_flags()
     NAME=$1
     (
      while read tag flags; do
-        if [ "$tag" = "$NAME" ]; then
+        if [ "$tag" = "$NAME" ] || [ "./$tag" = "$NAME" ]; then
             echo "$flags"
             exit 0;
         fi