diff options
author | Marcel Klehr <mklehr@gmx.net> | 2012-10-27 17:28:15 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2012-10-27 17:28:15 +0200 |
commit | 3d1fd05085924388f6577a24c9b62ad0b4949661 (patch) | |
tree | a5e3bd806e26d20d3604cfceb67af1ad41aa1a3c /Makefile | |
parent | d5ace6c163ae6ec3789027c5301ae90beeb1f229 (diff) | |
download | etherpad-lite-3d1fd05085924388f6577a24c9b62ad0b4949661.zip |
Insert epl version into template.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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/ |