--- mozilla/nsprpub/config/make-system-wrappers.pl.visibility 2005-04-29 23:02:53.000000000 +0200 +++ mozilla/nsprpub/config/make-system-wrappers.pl 2007-08-27 15:34:58.000000000 +0200 @@ -45,9 +45,7 @@ while (<STDIN>) { next; } - if (/(.*)\/[^\/*]/) { - mkdir "$output_dir/$1"; - } + mkdir_p(dirname("$output_dir/$_")); open OUT, ">$output_dir/$_"; print OUT "#pragma GCC system_header\n"; # suppress include_next warning @@ -57,3 +55,17 @@ while (<STDIN>) { close OUT; } +sub dirname { local $_ = shift; s|[^/]*/*\s*$||; s|(.)/*$|$1|; $_ || '.' } + +sub mkdir_p { + my ($dir) = @_; + if (-d $dir) { + # nothing to do + } elsif (-e $dir) { + die "mkdir: error creating directory $dir: $dir is a file and i won't delete it\n"; + } else { + mkdir_p(dirname($dir)); + mkdir($dir, 0755) or die "mkdir: error creating directory $dir: $!\n"; + } + 1; +} --- mozilla/config/system-headers.visibility 2007-11-08 04:03:24.000000000 -0500 +++ mozilla/config/system-headers 2007-12-11 13:10:02.000000000 -0500 @@ -498,6 +498,7 @@ PALM_CMN.H pango-engine.h pango-glyph.h pango-modules.h +pango/pangocairo.h pango/pangofc-decoder.h pango/pangofc-font.h pango/pangofc-fontmap.h @@ -662,6 +663,8 @@ sstream stack StandardFile.h starlet.h +startup-notification-1.0/libsn/sn.h +startup-notification-1.0/libsn/sn-common.h stat.h statreg.cpp statreg.h