[foundation-web] Trying to fix the evil sed thing by matching the attibutes to body
- From: Tobias Mueller <tobiasmue src gnome org>
- To: svn-commits-list gnome org
- Subject: [foundation-web] Trying to fix the evil sed thing by matching the attibutes to body
- Date: Sat, 6 Jun 2009 11:18:23 -0400 (EDT)
commit a9b12101dccc187d69213bbf3b57e313bf799df2
Author: Tobias Mueller <tobiasmue gnome org>
Date: Sat Jun 6 17:14:24 2009 +0200
Trying to fix the evil sed thing by matching the attibutes to body
We lose the onLoad argument to <body> if we don't match, and
backreference it.
---
include/evilsedhack | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/evilsedhack b/include/evilsedhack
index d99705d..23b6c71 100755
--- a/include/evilsedhack
+++ b/include/evilsedhack
@@ -2,7 +2,7 @@
PAGE=$1
ROOT=$2
-sed "s,<head>,<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.gnome.org/default.css\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"$ROOT/foundation.css\" /><link rel=\"icon\" type=\"image/png\" href=\"http://www.gnome.org/img/logo/foot-16.png\" />,i;s,<body[^>]*>,<body><div id=\"body\">,i;/<\/body>/,//d" $PAGE
+sed "s,<head>,<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.gnome.org/default.css\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"$ROOT/foundation.css\" /><link rel=\"icon\" type=\"image/png\" href=\"http://www.gnome.org/img/logo/foot-16.png\" />,i;s,<body\([^>]*\)>,<body\1><div id=\"body\">,i;/<\/body>/,//d" $PAGE
cat <<-FOOT
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]