PP2_FILE = pz2.js
HANDLEBARS_URL = http://builds.handlebarsjs.com.s3.amazonaws.com/${HANDLEBARS_FILE}
JQUERY_URL = http://code.jquery.com/${JQUERY_FILE}
JQUERY_JSON_URL = https://jquery-json.googlecode.com/files/${JQUERY_JSON_FILE}
PP2_FILE = pz2.js
HANDLEBARS_URL = http://builds.handlebarsjs.com.s3.amazonaws.com/${HANDLEBARS_FILE}
JQUERY_URL = http://code.jquery.com/${JQUERY_FILE}
JQUERY_JSON_URL = https://jquery-json.googlecode.com/files/${JQUERY_JSON_FILE}
PP2_URL = http://git.indexdata.com/?p=pazpar2.git;a=blob_plain;f=js/${PP2_FILE};hb=HEAD
VERSION = $(shell tr -d '\012' < VERSION)
HANDLEBARS = ../test/node_modules/.bin/handlebars
PP2_URL = http://git.indexdata.com/?p=pazpar2.git;a=blob_plain;f=js/${PP2_FILE};hb=HEAD
VERSION = $(shell tr -d '\012' < VERSION)
HANDLEBARS = ../test/node_modules/.bin/handlebars
INSTALLED_DOWNLOADABLE = $(DOWNLOADABLE:%=$(DEST)/%)
INSTALLED_RELEASABLE = $(RELEASABLE:%=$(DEST)/%)
INSTALLED_DOWNLOADABLE = $(DOWNLOADABLE:%=$(DEST)/%)
INSTALLED_RELEASABLE = $(RELEASABLE:%=$(DEST)/%)
- echo "/*! Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com"; \
- echo " Licence: GPL, http://www.indexdata.com/licences/gpl"; \
+ echo "/*! Copyright (c) 2013-$$(date '+%Y') Index Data ApS. http://indexdata.com"; \
+ echo " Licence: LGPL, http://www.indexdata.com/licences/lgpl"; \
echo " created at: $$(date)"; \
echo " MKWS GIT id: $$(git show | head -n 1 | perl -npe 's,\S+\s+,,')"; \
echo " pz2.js GIT id: $$(curl -sSf 'http://git.indexdata.com/?p=pazpar2.git;a=rss' | egrep '<guid' | head -1 | perl -ne 'print "$$1\n" if m,.*=([0-9a-f]+)</guid>,')"; \
echo "*/"; \
cat $(DEST)/${JQUERY_FILE}; \
cat $(DEST)/${JQUERY_JSON_FILE}; \
echo " created at: $$(date)"; \
echo " MKWS GIT id: $$(git show | head -n 1 | perl -npe 's,\S+\s+,,')"; \
echo " pz2.js GIT id: $$(curl -sSf 'http://git.indexdata.com/?p=pazpar2.git;a=rss' | egrep '<guid' | head -1 | perl -ne 'print "$$1\n" if m,.*=([0-9a-f]+)</guid>,')"; \
echo "*/"; \
cat $(DEST)/${JQUERY_FILE}; \
cat $(DEST)/${JQUERY_JSON_FILE}; \
echo 'mkws_jQuery = jQuery.noConflict(true);'; \
cat $(DEST)/${HANDLEBARS_FILE}; \
cat $(DEST)/${PP2_FILE}; \
echo 'mkws_jQuery = jQuery.noConflict(true);'; \
cat $(DEST)/${HANDLEBARS_FILE}; \
cat $(DEST)/${PP2_FILE}; \
- perl -npe 's,sourceMappingURL=jquery.*map,,' $@.tmp > $@
+ perl -npe 's,sourceMappingURL=jquery.*map,,' $@.tmp | sed 's@<input>@<input/>@' > $@
echo "*** There is already a release $(VERSION)"; \
else \
cp -p $(DEST)/mkws.js ${DEST}/releases/mkws-$(VERSION).js; \
cp -p $(DEST)/mkws.min.js ${DEST}/releases/mkws-$(VERSION).min.js; \
cp -p $(DEST)/mkws-complete.js ${DEST}/releases/mkws-complete-$(VERSION).js; \
cp -p $(DEST)/mkws-complete.min.js ${DEST}/releases/mkws-complete-$(VERSION).min.js; \
echo "*** There is already a release $(VERSION)"; \
else \
cp -p $(DEST)/mkws.js ${DEST}/releases/mkws-$(VERSION).js; \
cp -p $(DEST)/mkws.min.js ${DEST}/releases/mkws-$(VERSION).min.js; \
cp -p $(DEST)/mkws-complete.js ${DEST}/releases/mkws-complete-$(VERSION).js; \
cp -p $(DEST)/mkws-complete.min.js ${DEST}/releases/mkws-complete-$(VERSION).min.js; \
-mkws-templates.js: *.templates/*.handlebars
- ${HANDLEBARS} -n mkws.defaultTemplates *.templates/*.handlebars -f $@.tmp
+mkws-templates.js: templates/*.handlebars
+ ${HANDLEBARS} -n mkws.defaultTemplates templates/*.handlebars -f $@.tmp