代码拉取完成,页面将自动刷新
all: Makefile.in
-include Makefile.in
# RELEASE:=$(shell grep em:version install.rdf | head -n 1 | sed -e 's/ *<em:version>//' -e 's/<\/em:version>//')
RELEASE:=$(shell git tag --sort version:refname | tail -n 1)
PREVRELEASE:=$(shell git tag --sort version:refname | tail -n 2 | head -n 1)
mdnotes.xpi: FORCE
rm -rf $@
zip -r $@ content chrome.manifest defaults locale skin install.rdf update.rdf -x \*.DS_Store
mdnotes-%-fx.xpi: mdnotes.xpi
mv $< $@
Makefile.in: install.rdf
echo "all: mdnotes-${RELEASE}-fx.xpi" > Makefile.in
release: mdnotes.xpi
@mv $< mdnotes-$(RELEASE).xpi
# Replace old version with new version in install.rdf and update.rdf
sed -i 's/${PREVRELEASE}/${RELEASE}/g' install.rdf
sed -i 's/${PREVRELEASE}/${RELEASE}/g' update.rdf
# Show commits between the last two tags
# @echo "\nChangelog\n------------"
@git log --pretty=format:"%s" $(PREVRELEASE)..$(RELEASE) > changelog.md
clean:
rm -rf *.xpi
FORCE:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。