1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_interfaces_location.dpatch by Damián Viano <des@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Change the path of the interfaces better following webapp policy.
## DP: Note that this could also have been generated with the provided
## DP: generator script for interfaces, but given the trivial of the patch, I
## DP: opted to do it this way rather than regenerating the interfaces on
## DP: every build
@DPATCH@
diff -urNad cgiirc-0.5.9~/interfaces/ie.pm cgiirc-0.5.9/interfaces/ie.pm
--- cgiirc-0.5.9~/interfaces/ie.pm 2006-05-01 06:55:46.000000000 -0300
+++ cgiirc-0.5.9/interfaces/ie.pm 2007-05-16 22:43:19.000000000 -0300
@@ -197,7 +197,7 @@
my($self, $cgi, $config) = @_;
my $style = $cgi->{style} || 'default';
$cgi->{style} =~ s/[^a-z]//gi;
- open(STYLE, "<interfaces/style-$style.css") or die("Error opening stylesheet $style: $!");
+ open(STYLE, "</usr/share/cgiirc/interfaces/style-$style.css") or die("Error opening stylesheet $style: $!");
print <STYLE>;
close(STYLE);
}
diff -urNad cgiirc-0.5.9~/interfaces/konqueror.pm cgiirc-0.5.9/interfaces/konqueror.pm
--- cgiirc-0.5.9~/interfaces/konqueror.pm 2006-05-01 06:55:46.000000000 -0300
+++ cgiirc-0.5.9/interfaces/konqueror.pm 2007-05-16 22:43:09.000000000 -0300
@@ -197,7 +197,7 @@
my($self, $cgi, $config) = @_;
my $style = $cgi->{style} || 'default';
$cgi->{style} =~ s/[^a-z]//gi;
- open(STYLE, "<interfaces/style-$style.css") or die("Error opening stylesheet $style: $!");
+ open(STYLE, "</usr/share/cgiirc/interfaces/style-$style.css") or die("Error opening stylesheet $style: $!");
print <STYLE>;
close(STYLE);
}
diff -urNad cgiirc-0.5.9~/interfaces/mozilla.pm cgiirc-0.5.9/interfaces/mozilla.pm
--- cgiirc-0.5.9~/interfaces/mozilla.pm 2006-05-01 06:55:46.000000000 -0300
+++ cgiirc-0.5.9/interfaces/mozilla.pm 2007-05-16 22:43:27.000000000 -0300
@@ -197,7 +197,7 @@
my($self, $cgi, $config) = @_;
my $style = $cgi->{style} || 'default';
$cgi->{style} =~ s/[^a-z]//gi;
- open(STYLE, "<interfaces/style-$style.css") or die("Error opening stylesheet $style: $!");
+ open(STYLE, "</usr/share/cgiirc/interfaces/style-$style.css") or die("Error opening stylesheet $style: $!");
print <STYLE>;
close(STYLE);
}
diff -urNad cgiirc-0.5.9~/interfaces/opera7.pm cgiirc-0.5.9/interfaces/opera7.pm
--- cgiirc-0.5.9~/interfaces/opera7.pm 2006-05-01 06:55:46.000000000 -0300
+++ cgiirc-0.5.9/interfaces/opera7.pm 2007-05-16 22:42:38.000000000 -0300
@@ -197,7 +197,7 @@
my($self, $cgi, $config) = @_;
my $style = $cgi->{style} || 'default';
$cgi->{style} =~ s/[^a-z]//gi;
- open(STYLE, "<interfaces/style-$style.css") or die("Error opening stylesheet $style: $!");
+ open(STYLE, "</usr/share/cgiirc/interfaces/style-$style.css") or die("Error opening stylesheet $style: $!");
print <STYLE>;
close(STYLE);
}
|