>From 970363017495dc0f8adbd90ca1369f34bd412024 Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann@googlemail.com>
Date: Fri, 6 Apr 2012 15:10:37 +0200
Subject: [PATCH 2/2] Generate a hovertext for the logo based on src/logik/MMDD.hover.

---
 Makefile                     |    9 ++++++++-
 src/template_head2           |   32 --------------------------------
 src/template_head2_content   |   32 ++++++++++++++++++++++++++++++++
 src/template_head2_hovertext |    1 +
 4 files changed, 41 insertions(+), 33 deletions(-)
 delete mode 100644 src/template_head2
 create mode 100644 src/template_head2_content
 create mode 100644 src/template_head2_hovertext

diff --git a/Makefile b/Makefile
index f216f0a..047f8e1 100644
--- a/Makefile
+++ b/Makefile
@@ -48,8 +48,15 @@ X' >> $@
 src/logik/$(DATE)-standard:
 	cmp htdocs/FFmpeg_standard.png htdocs/ffmpeg-logo.png || \
 	cp htdocs/FFmpeg_standard.png htdocs/ffmpeg-logo.png
+	echo "FFmpeg" > src/template_head2_hovertext
 
 src/logik/$(DATE).png:
 	cmp $@ htdocs/ffmpeg-logo.png || cp $@ htdocs/ffmpeg-logo.png
 
-.PHONY: all clean src/logik/$(DATE)-standard src/logik/$(DATE).png
+src/logik/$(DATE).hover:
+	cp $@ src/template_head2_hovertext
+
+src/template_head2: src/template_head2_content src/template_head2_hovertext
+	sed -e "s/HOVERTEXT/`cat src/template_head2_hovertext`/g" $< > $@
+
+.PHONY: all clean src/logik/$(DATE)-standard src/logik/$(DATE).png src/logik/$(DATE).hover src/template_head2
diff --git a/src/template_head2 b/src/template_head2
deleted file mode 100644
index 06e1100..0000000
--- a/src/template_head2
+++ /dev/null
@@ -1,32 +0,0 @@
-    <link rel="icon" href="favicon.png" type="image/png" />
-    <link rel="stylesheet" type="text/css" href="default.css" />
-    <link href="/main.rss" rel="alternate" type="application/rss+xml" title="ffmpeg.org" />
-</head>
-
-<body>
-
-<div id="container">
-
-<div id="banner">
-<a href="index.html">
-<img src="ffmpeg-logo.png" alt="FFmpeg" />
-</a>
-</div>
-
-<div id="navbar">
-<a href="index.html">News</a> |
-<a href="about.html">About</a> |
-<a href="download.html">Download</a> |
-<a href="documentation.html">Documentation</a> |
-<a href="bugreports.html">Bug Reports</a> |
-<a href="contact.html">Contact</a> |
-<a href="consulting.html">Consulting</a> |
-<a href="projects.html">Projects</a> |
-<a href="legal.html">Legal</a> |
-<a href="security.html">Security</a> |
-<a href="http://fate.ffmpeg.org">FATE</a>
-</div>
-
-<div id="body">
-
-
diff --git a/src/template_head2_content b/src/template_head2_content
new file mode 100644
index 0000000..22e599b
--- /dev/null
+++ b/src/template_head2_content
@@ -0,0 +1,32 @@
+    <link rel="icon" href="favicon.png" type="image/png" />
+    <link rel="stylesheet" type="text/css" href="default.css" />
+    <link href="/main.rss" rel="alternate" type="application/rss+xml" title="ffmpeg.org" />
+</head>
+
+<body>
+
+<div id="container">
+
+<div id="banner">
+<a href="index.html">
+<img src="ffmpeg-logo.png" alt="FFmpeg" title="HOVERTEXT" />
+</a>
+</div>
+
+<div id="navbar">
+<a href="index.html">News</a> |
+<a href="about.html">About</a> |
+<a href="download.html">Download</a> |
+<a href="documentation.html">Documentation</a> |
+<a href="bugreports.html">Bug Reports</a> |
+<a href="contact.html">Contact</a> |
+<a href="consulting.html">Consulting</a> |
+<a href="projects.html">Projects</a> |
+<a href="legal.html">Legal</a> |
+<a href="security.html">Security</a> |
+<a href="http://fate.ffmpeg.org">FATE</a>
+</div>
+
+<div id="body">
+
+
diff --git a/src/template_head2_hovertext b/src/template_head2_hovertext
new file mode 100644
index 0000000..41840c5
--- /dev/null
+++ b/src/template_head2_hovertext
@@ -0,0 +1 @@
+FFmpeg
-- 
1.7.4.3

