Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4f41a8e483
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (42 sloc) 1.289 kb
NAME=beacon
CSS=stylesheet.css
GITHUBASE=https://github.com/gbv/beaconspec/
RFC=DISPLAY= sh pandoc2rfc/xml-wrap rfctemplate.xml
MARKDOWN=${NAME}.md
HTML=${NAME}.html
XML=${NAME}.xml
TXT=${NAME}.txt
REVHASH=$(shell git log -1 --format="%H" ${MARKDOWN})
REVDATE=$(shell git log -1 --format="%ai" ${MARKDOWN})
REVSHRT=$(shell git log -1 --format="%h" ${MARKDOWN})
REVHTML=${NAME}-${REVSHRT}.html
all: html txt
html: ${HTML}
xml: ${XML}
txt: ${TXT}
revision: ${HTML}
cp ${HTML} ${REVHTML}
website: ${HTML} ${TXT}
@cp ${HTML} new.html
@cp ${TXT} new.txt
git checkout gh-pages
@cp new.html ${HTML}
@cp new.txt ${TXT}
git add ${HTML} ${TXT}
git commit -m "added revision ${REVSHRT}"
git checkout master
middle.xml: ${MARKDOWN} pandoc2rfc/transform.xsl
pandoc -t docbook -s $< | xsltproc --nonet pandoc2rfc/transform.xsl - > $@
appendices.xml: appendices.md pandoc2rfc/transform.xsl
pandoc -t docbook -s $< | xsltproc --nonet pandoc2rfc/transform.xsl - > $@
draft.xml: rfctemplate.xml middle.xml appendices.xml
perl pandoc2rfc/xml-single rfctemplate.xml > draft.xml
${TXT}: draft.xml rfctemplate.xml
${RFC} $@
${HTML}: draft.xml rfctemplate.xml
${RFC} $@
clean:
rm -f ${HTML} ${NAME}-*.html ${XML} ${TXT} draft.*
all: html txt
new: clean all
.PHONY: clean all new
Jump to Line
Something went wrong with that request. Please try again.