/[gentoo]/xml/htdocs/proj/en/glep/Makefile
Gentoo

Contents of /xml/htdocs/proj/en/glep/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Apr 7 22:19:58 2010 UTC (4 years, 3 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Add makefile to help build HTML and detect outdated HTML.

1 GLEPTOOL=glep.py --exit-status=3 --link-stylesheet --stylesheet-path=tools/glep.css
2
3 INPUTS = $(wildcard glep*.txt)
4 OUTPUTS = $(patsubst %.txt,%.html,$(INPUTS))
5
6 all: $(OUTPUTS)
7
8 # Build warnings first
9 %.html: %.txt
10 $(GLEPTOOL) --report=1 $< /dev/null
11 $(GLEPTOOL) $< $@
12
13 # This enables comparisions
14 .PHONY: versioncmp
15 versioncmp: .tmp.versions.html .tmp.versions.txt
16 diff -Nuar .tmp.versions.txt .tmp.versions.html
17
18 # Extract the revision
19 .tmp.versions.html:
20 awk '/class="field-name">Version:<\/th>/{gsub("<[^>]+?>","",$$0); s=FILENAME; gsub(".html","",s); printf "%s:%s\n",s,$$0;}' *.html >$@
21 .tmp.versions.txt:
22 awk '/^Version:/{gsub(" *\\$$[A-Za-z:]* *","",$$0); s=FILENAME; gsub(".txt","",s); printf "%s:%s\n",s,$$0;}' *.txt >$@
23
24 # clean up the temps immediately
25 .INTERMEDIATE: .tmp.versions.html .tmp.versions.txt

  ViewVC Help
Powered by ViewVC 1.1.20