Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > ba17bf283650f0bfe584474187aa5a3b > files > 53

mozilla-firefox-2.0.0.6-12mdv2008.0.src.rpm

--- 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	2006-12-19 00:48:58.000000000 +0100
+++ mozilla/config/system-headers	2007-08-27 15:31:47.000000000 +0200
@@ -208,6 +208,7 @@ Gdiplus.h
 gdk/gdkevents.h
 gdk/gdk.h
 gdk/gdkkeysyms.h
+gdk/gdkpango.h
 gdk/gdkprivate.h
 gdk/gdkregion.h
 gdk/gdkwindow.h
@@ -497,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
@@ -661,6 +663,7 @@ sstream
 stack
 StandardFile.h
 starlet.h
+startup-notification-1.0/libsn/sn.h
 stat.h
 statreg.cpp
 statreg.h