summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-10-27 17:28:15 +0200
committerMarcel Klehr <mklehr@gmx.net>2012-10-27 17:28:15 +0200
commit3d1fd05085924388f6577a24c9b62ad0b4949661 (patch)
treea5e3bd806e26d20d3604cfceb67af1ad41aa1a3c /Makefile
parentd5ace6c163ae6ec3789027c5301ae90beeb1f229 (diff)
downloadetherpad-lite-3d1fd05085924388f6577a24c9b62ad0b4949661.zip
Insert epl version into template.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 01f30701..b6419217 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,14 @@ doc_dirs = doc $(wildcard doc/*/)
outdoc_dirs = out $(addprefix out/,$(doc_dirs))
doc_sources = $(wildcard doc/*/*.md) $(wildcard doc/*.md)
outdoc_files = $(addprefix out/,$(doc_sources:.md=.html))
+VERSION = $(shell node -e "console.log( require('./src/package.json').version )")
docs: $(outdoc_files)
out/doc/%.html: doc/%.md
mkdir -p $(@D)
node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
+ cat $@ | sed 's/__VERSION__/${VERSION}/' > $@
clean:
rm -rf out/