| 1 |
robbat2 |
1.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
|