2012-05-17 04:34:39 -04:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# This file is used for maintenance of org on the server.
|
|
|
|
#----------------------------------------------------------------------
|
2012-08-25 02:35:02 -04:00
|
|
|
.PHONY: helpserver \
|
|
|
|
release rel-dirty rel-up cleanrel \
|
|
|
|
elpa elpa-dirty elpa-up \
|
|
|
|
doc-up \
|
|
|
|
upload-release upload-elpa upload-doc upload \
|
2012-08-26 08:03:20 -04:00
|
|
|
tagwarn version
|
2012-05-17 04:34:39 -04:00
|
|
|
|
|
|
|
help helpall helpserver::
|
|
|
|
$(info )
|
|
|
|
$(info Maintenance)
|
|
|
|
$(info ===========)
|
2012-08-26 14:22:57 -04:00
|
|
|
$(info release - clean up, create the distribution archives)
|
2012-09-21 10:35:04 -04:00
|
|
|
$(info elpa - clean up, create the org-*.tar ELPA archive)
|
|
|
|
$(info elpaplus - clean up, create the org-plus-contrib-*.tar ELPA archive)
|
2012-08-26 14:22:57 -04:00
|
|
|
$(info upload-release - clean up, populate the server with arhives)
|
2012-09-21 10:35:04 -04:00
|
|
|
$(info upload-elpa - clean up, populate the server with org-*.tar)
|
|
|
|
$(info upload-elpaplus - clean up, populate the server with org-plus-contrib-*.tar)
|
2012-08-26 14:22:57 -04:00
|
|
|
$(info upload-doc - clean up, populate the server with docs)
|
|
|
|
$(info upload - clean up, populate the server with everything)
|
2012-08-26 14:20:34 -04:00
|
|
|
|
2012-05-17 04:34:39 -04:00
|
|
|
helpserver::
|
|
|
|
@echo ""
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2012-08-26 08:03:20 -04:00
|
|
|
SERVROOT ?= /var/www/orgmode.org
|
|
|
|
SERVERMK ?= true # or just any value at all, really
|
2012-08-26 14:20:34 -04:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2013-04-18 12:08:13 -04:00
|
|
|
ORGFULL = README COPYING lisp/ \
|
2012-09-21 10:35:04 -04:00
|
|
|
Makefile request-assign-future.txt \
|
|
|
|
mk/default.mk mk/targets.mk mk/version.mk \
|
|
|
|
mk/org-fixup.el \
|
2014-06-02 13:33:27 -04:00
|
|
|
etc/ contrib/ doc/ testing/
|
2012-09-21 10:35:04 -04:00
|
|
|
ORGFULL := $(ORGFULL:%/=%/*)
|
2015-08-16 09:34:32 -04:00
|
|
|
ORGELPA = README_ELPA COPYING etc/ORG-NEWS lisp/ \
|
2012-09-21 10:35:04 -04:00
|
|
|
doc/dir doc/org doc/orgcard.pdf \
|
|
|
|
etc/styles/ org-pkg.el
|
|
|
|
ORGELPA := $(ORGELPA:%/=%/*)
|
2012-09-20 14:55:47 -04:00
|
|
|
ORGELPAPLUS := $(ORGELPA:org-pkg%=org-plus-contrib-pkg%)
|
2012-05-17 04:34:39 -04:00
|
|
|
|
2012-08-27 13:12:36 -04:00
|
|
|
release: cleanall info pdf card rel-dirty tagwarn
|
2012-08-25 02:35:02 -04:00
|
|
|
rel-dirty rel-up: ORGDIR=org-$(GITVERSION:release_%=%)
|
2012-08-26 08:03:20 -04:00
|
|
|
rel-dirty:
|
|
|
|
@$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-dist version autoloads
|
|
|
|
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGRZIP)
|
2012-08-22 02:04:56 -04:00
|
|
|
ln -s . $(ORGDIR)
|
|
|
|
tar -zcf $(ORGDIR).tar.gz $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
|
|
|
|
zip -r9 $(ORGDIR).zip $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
|
|
|
|
-@$(RM) $(ORGDIR)
|
2012-08-27 13:12:36 -04:00
|
|
|
rel-up: info pdf card rel-dirty
|
2012-08-25 02:35:02 -04:00
|
|
|
$(CP) $(ORGDIR).tar.gz $(ORGDIR).zip $(SERVROOT)/
|
2012-08-19 06:21:33 -04:00
|
|
|
|
|
|
|
PKG_TAG = $(shell date +%Y%m%d)
|
|
|
|
PKG_DOC = "Outline-based notes management and organizer"
|
2012-09-18 15:36:44 -04:00
|
|
|
PKG_REQ = "" # marmalade chokes on explicit "nil"
|
2012-08-19 06:21:33 -04:00
|
|
|
|
2012-08-27 13:12:36 -04:00
|
|
|
elpa: cleanall info card elpa-dirty
|
2012-08-25 02:35:02 -04:00
|
|
|
elpa-dirty elpa-up: ORGDIR=org-$(PKG_TAG)
|
2012-08-26 08:03:20 -04:00
|
|
|
elpa-dirty:
|
|
|
|
@$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-elpa version autoloads
|
2012-05-17 04:34:39 -04:00
|
|
|
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP)
|
|
|
|
ln -s . $(ORGDIR)
|
2012-09-27 14:36:08 -04:00
|
|
|
echo "(define-package \"org\"" > org-pkg.el
|
|
|
|
echo " \"$(PKG_TAG)\" \"$(PKG_DOC)\" ($(PKG_REQ)))" >> org-pkg.el
|
2016-10-18 18:29:11 -04:00
|
|
|
echo ";; Local Variables:" >> org-pkg.el
|
2012-09-27 14:36:08 -04:00
|
|
|
echo ";; no-byte-compile: t" >> org-pkg.el
|
2016-10-18 18:29:11 -04:00
|
|
|
echo ";; End:" >> org-pkg.el
|
|
|
|
tar --exclude=Makefile \
|
2012-09-27 14:36:08 -04:00
|
|
|
--transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \
|
2012-09-15 14:06:53 -04:00
|
|
|
$(foreach dist, $(ORGELPA), $(ORGDIR)/$(dist))
|
|
|
|
-@$(RM) $(ORGDIR) org-pkg.el
|
2012-09-26 11:50:20 -04:00
|
|
|
elpa-up: info card elpa-dirty archive-contents
|
2012-09-28 04:05:10 -04:00
|
|
|
$(CP) archive-contents $(ORGDIR).tar $(SERVROOT)/elpa/
|
2012-05-17 04:34:39 -04:00
|
|
|
|
2012-09-26 11:50:20 -04:00
|
|
|
archive-contents:
|
2012-09-27 14:36:08 -04:00
|
|
|
echo "(1 (org . [($(PKG_TAG)) ($(PKG_REQ)) \"$(PKG_DOC)\" tar])" > $@
|
|
|
|
echo " (org-plus-contrib . [($(PKG_TAG)) ($(PKG_REQ)) \"$(PKG_DOC)\" tar]))" >> $@
|
2012-09-15 12:49:18 -04:00
|
|
|
|
|
|
|
elpaplus: cleanall info card elpaplus-dirty
|
2019-03-01 12:02:56 -05:00
|
|
|
elpaplus-dirty elpaplus-up: ORG_ADD_CONTRIB=org*.el ob-*.el ox-*.el ol-*.el
|
2012-09-20 14:55:47 -04:00
|
|
|
elpaplus-dirty elpaplus-up: ORGDIR=org-plus-contrib-$(PKG_TAG)
|
2012-09-15 12:49:18 -04:00
|
|
|
elpaplus-dirty:
|
|
|
|
@$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-elpaplus version autoloads
|
|
|
|
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP)
|
|
|
|
ln -s . $(ORGDIR)
|
2012-09-27 14:36:08 -04:00
|
|
|
echo "(define-package \"org-plus-contrib\"" > org-plus-contrib-pkg.el
|
|
|
|
echo " \"$(PKG_TAG)\" \"$(PKG_DOC)\" ($(PKG_REQ)))" >> org-plus-contrib-pkg.el
|
2016-10-18 18:29:11 -04:00
|
|
|
echo ";; Local Variables:" >> org-plus-contrib-pkg.el
|
2012-09-27 14:36:08 -04:00
|
|
|
echo ";; no-byte-compile: t" >> org-plus-contrib-pkg.el
|
2016-10-18 18:29:11 -04:00
|
|
|
echo ";; End:" >> org-plus-contrib-pkg.el
|
|
|
|
tar --exclude=Makefile \
|
2012-09-27 14:36:08 -04:00
|
|
|
--transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \
|
2012-09-15 14:06:53 -04:00
|
|
|
$(foreach dist, $(ORGELPAPLUS), $(ORGDIR)/$(dist))
|
2012-09-20 14:55:47 -04:00
|
|
|
-@$(RM) $(ORGDIR) org-plus-contrib-pkg.el
|
2012-09-15 12:49:18 -04:00
|
|
|
@$(MAKE) cleanlisp
|
2012-09-26 11:50:20 -04:00
|
|
|
elpaplus-up: info card elpaplus-dirty archive-contents
|
2012-09-28 04:05:10 -04:00
|
|
|
$(CP) archive-contents $(ORGDIR).tar $(SERVROOT)/elpa/
|
2012-09-15 12:49:18 -04:00
|
|
|
|
2012-08-19 06:21:33 -04:00
|
|
|
tagwarn:
|
2012-08-26 08:03:20 -04:00
|
|
|
$(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
|
|
|
|
$(info ======================================================) \
|
|
|
|
$(info = =) \
|
|
|
|
$(info = A release should only be made from a revision that =) \
|
|
|
|
$(info = has an annotated tag! =) \
|
|
|
|
$(info = =) \
|
|
|
|
$(info ======================================================))
|
2012-08-22 02:04:56 -04:00
|
|
|
|
2012-08-26 08:03:20 -04:00
|
|
|
version:
|
|
|
|
@echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)$(ORGDIST)
|
|
|
|
@echo "ORGVERSION ?= $(ORGVERSION)" > mk/version.mk
|
|
|
|
@echo "GITVERSION ?= $(GITVERSION)" >> mk/version.mk
|
2012-08-26 04:18:23 -04:00
|
|
|
|
|
|
|
cleanall clean: cleanrel
|
2012-08-22 02:04:56 -04:00
|
|
|
cleanrel:
|
2012-09-26 11:50:20 -04:00
|
|
|
-$(RM) archive-contents org-$(PKG_TAG)* org-$(DISTVERSION)* org-*.zip org-*.tar* mk/version.mk
|
2012-08-25 02:35:02 -04:00
|
|
|
|
2012-08-27 13:12:36 -04:00
|
|
|
doc-up: info pdf card html
|
|
|
|
$(MAKE) -C doc manual guide
|
2013-03-24 11:16:51 -04:00
|
|
|
$(CP) doc/org.html $(SERVROOT)
|
|
|
|
$(CP) doc/org.pdf $(SERVROOT)
|
|
|
|
$(CP) doc/orgguide.pdf $(SERVROOT)
|
|
|
|
$(CP) doc/manual/* $(SERVROOT)/manual
|
|
|
|
$(CP) doc/guide/* $(SERVROOT)/guide
|
2012-08-25 02:35:02 -04:00
|
|
|
|
2012-09-26 11:50:20 -04:00
|
|
|
upload: cleanall rel-up doc-up elpa-up elpaplus-up
|
2012-09-15 12:49:18 -04:00
|
|
|
upload-elpa: cleanall elpa-up
|
|
|
|
upload-elpaplus: cleanall elpaplus-up
|
|
|
|
upload-release: cleanall rel-up
|
|
|
|
upload-doc: cleanall doc-up
|