r216 - // /web/deps/dep5/Makefile
vorlon at users.alioth.debian.org
vorlon at users.alioth.debian.org
Wed Nov 30 22:33:14 UTC 2011
Author: vorlon
Date: Wed Nov 30 22:33:14 2011
New Revision: 216
URL: http://svn.debian.org/wsvn/dep/?sc=1&rev=216
Log:
add a local Makefile rule to generate index.html for the dep website
Modified:
/ (props changed)
web/deps/dep5/Makefile
Modified: web/deps/dep5/Makefile
URL: http://svn.debian.org/wsvn/dep/web/deps/dep5/Makefile?rev=216&op=diff
==============================================================================
--- web/deps/dep5/Makefile (original)
+++ web/deps/dep5/Makefile Wed Nov 30 22:33:14 2011
@@ -1,6 +1,6 @@
-all: copyright-format.txt.gz copyright-format.html
+all: copyright-format.txt.gz index.html
-%.html: %.xml html.dsl
+copyright-format.html: copyright-format.xml html.dsl
jade -V nochunks -t sgml -d html.dsl \
/usr/share/xml/declaration/xml.dcl $< > $@
-tidy -q -i -m -f /dev/null $@
@@ -11,6 +11,31 @@
%.txt.gz: %.txt
gzip -cf9 $< > $@
+index.html: copyright-format.html
+ @sed -e'/<div class="ARTICLE">/i\
+<pre><code>Title: Machine-readable debian/copyright\
+DEP: 5\
+State: CANDIDATE\
+Drivers: Steve Langasek <vorlon at debian.org>\
+Date: 2011-10-10\
+URL: http://dep.debian.net/deps/dep5 (this page)\
+ http://anonscm.debian.org/gitweb/?p=dbnpolicy/policy.git;a=blob;f=copyright-format/copyright-format.xml;hb=21b04a5dd8f510f167198836d0e8c0acd3d17b3f (the source)\
+License:\
+ Copying and distribution of this file, with or without modification,\
+ are permitted in any medium without royalty provided the copyright\
+ notice and this notice are preserved.\
+Abstract:\
+ Establish a standard, machine-readable format for debian/copyright\
+ files within packages, to facilitate automated checking and\
+ reporting of licenses for packages and sets of packages.\
+</code></pre>' \
+ -e'/<title>/a\
+<link rel="stylesheet" href="../../style.css" type="text/css" />\
+<link rel="stylesheet" href="../../local.css" type="text/css" />\
+' \
+ -e'/<div class="\(legalnotice\|abstract\)">/,/<\/div>/d' \
+ $< > $@
+
clean:
rm -f *.css *.html *.txt *.txt.gz
More information about the dep-commits
mailing list