summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
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