summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2010-08-18 10:13:45 +0200
committerJulien Valroff <julien@kirya.net>2010-08-18 10:13:45 +0200
commitf670126ff78e9c38088530793adb6895911a5032 (patch)
treeb7762e04dff4e0216145a06ddc778f09df1c6515 /debian/rules
parentb8efa8bc85b3bea8bc2aed9a09701cf8003b0b89 (diff)
Add the CSS directly into the CGI
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 76a9cb2..0e8172f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,12 @@
override_dh_auto_configure:
ln mailgraph.pl mailgraph
+ cp -f -a mailgraph.cgi mailgraph.cgi.orig
+ sed -e 's/^<link rel="stylesheet" href="mailgraph.css" type="text\/css" \/>$/<style type="text\/css\">/' \
+ -e '/<style type="text\/css">/r mailgraph.css' \
+ -e '/<\/head>/i <\/style>' mailgraph.cgi
override_dh_auto_clean:
rm -f mailgraph
+ mv -f mailgraph.cgi.orig mailgraph.cgi
dh_auto_clean