[FFmpeg-cvslog] [ffmpeg.org]: r244 - in trunk: Makefile sed_commands

diego subversion
Fri Jan 30 22:03:23 CET 2009


Author: diego
Date: Fri Jan 30 22:03:22 2009
New Revision: 244

Log:
Split sed commands off into their own file.
This saves quoting headaches and actually works with GNU and BSD sed.

Added:
   trunk/sed_commands
      - copied, changed from r242, trunk/Makefile
Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Fri Jan 30 21:55:06 2009	(r243)
+++ trunk/Makefile	Fri Jan 30 22:03:22 2009	(r244)
@@ -11,21 +11,7 @@
 clean:
 	rm -f $(TARGETS)
 
-htdocs/%.html: src/% Makefile
-	sed -e "#FFMPEG_WEBSITE_NAVBAR#a\
-<center>\n\
-[<a href="index.html">Main Page and News</a>]\n\
-[<a href="changelog.html">Changelog</a>]\n\
-[<a href="download.html">Download and SVN</a>]\n\
-[<a href="documentation.html">Documentation</a>]\n\
-[<a href="compat.html">Compatibility</a>]\n\
-[<a href="mailinglists.html">Mailing Lists</a>]\n\
-[<a href="bugreports.html">Reporting Bugs</a>]\n\
-[<a href="legal.html">License and Legal Issues</a>]\n\
-[<a href="projects.html">Projects Using FFmpeg</a>]\n\
-[<a href="shame.html">Hall of Shame</a>]\n\
-</center>\n\
-<hr>" \
-	-e "#FFMPEG_WEBSITE_NAVBAR#d" $< > $@
+htdocs/%.html: src/% Makefile sed_commands
+	sed -f sed_commands $< > $@
 
 .PHONY: all clean

Copied and modified: trunk/sed_commands (from r242, trunk/Makefile)
==============================================================================
--- trunk/Makefile	Fri Jan 30 21:32:42 2009	(r242, copy source)
+++ trunk/sed_commands	Fri Jan 30 22:03:22 2009	(r244)
@@ -1,31 +1,15 @@
-# ffmpeg.org HTML generation from source files
-
-SRCS=bugreports compat documentation download \
-     index legal mailinglists projects shame
-
-TARGETS=$(addsuffix .html,$(addprefix htdocs/,$(SRCS)))
-
-
-all: $(TARGETS)
-
-clean:
-	rm -f $(TARGETS)
-
-htdocs/%.html: src/% Makefile
-	sed -e "#FFMPEG_WEBSITE_NAVBAR#a\
-<center>\n\
-[<a href="index.html">Main Page and News</a>]\n\
-[<a href="changelog.html">Changelog</a>]\n\
-[<a href="download.html">Download and SVN</a>]\n\
-[<a href="documentation.html">Documentation</a>]\n\
-[<a href="compat.html">Compatibility</a>]\n\
-[<a href="mailinglists.html">Mailing Lists</a>]\n\
-[<a href="bugreports.html">Reporting Bugs</a>]\n\
-[<a href="legal.html">License and Legal Issues</a>]\n\
-[<a href="projects.html">Projects Using FFmpeg</a>]\n\
-[<a href="shame.html">Hall of Shame</a>]\n\
-</center>\n\
-<hr>" \
-	-e "#FFMPEG_WEBSITE_NAVBAR#d" $< > $@
-
-.PHONY: all clean
+/FFMPEG_WEBSITE_NAVBAR/a\
+<center>\
+[<a href="index.html">Main Page and News</a>]\
+[<a href="changelog.html">Changelog</a>]\
+[<a href="download.html">Download and SVN</a>]\
+[<a href="documentation.html">Documentation</a>]\
+[<a href="compat.html">Compatibility</a>]\
+[<a href="mailinglists.html">Mailing Lists</a>]\
+[<a href="bugreports.html">Reporting Bugs</a>]\
+[<a href="legal.html">License and Legal Issues</a>]\
+[<a href="projects.html">Projects Using FFmpeg</a>]\
+[<a href="shame.html">Hall of Shame</a>]\
+</center>\
+<hr>
+/FFMPEG_WEBSITE_NAVBAR/d




More information about the ffmpeg-cvslog mailing list