Merge branch 'maint'

This commit is contained in:
Achim Gratz 2012-08-26 10:33:13 +02:00
commit c87ca996ce
3 changed files with 20 additions and 11 deletions

5
.gitignore vendored
View File

@ -31,9 +31,10 @@ orgcard_letter.tex
orgcard.txt orgcard.txt
org org
org-install.el org-install.el
org-version.* org-version.el
org-*.tar.gz org-*.tar*
org-*.zip org-*.zip
version.mk
manual manual
org_dual_license.texi org_dual_license.texi
ORGWEBPAGE/Changes.txt ORGWEBPAGE/Changes.txt

View File

@ -22,6 +22,7 @@ ifneq ($(wildcard .git),)
ORGVERSION ?= $(subst release_,,$(shell git describe --abbrev=0 HEAD)) ORGVERSION ?= $(subst release_,,$(shell git describe --abbrev=0 HEAD))
GITSTATUS ?= $(shell git status -uno --porcelain) GITSTATUS ?= $(shell git status -uno --porcelain)
else else
-include version.mk
GITVERSION ?= N/A GITVERSION ?= N/A
ORGVERSION ?= N/A ORGVERSION ?= N/A
endif endif

View File

@ -6,7 +6,7 @@
elpa elpa-dirty elpa-up \ elpa elpa-dirty elpa-up \
doc-up \ doc-up \
upload-release upload-elpa upload-doc upload \ upload-release upload-elpa upload-doc upload \
tagwarn tagwarn version.mk
help helpall helpserver:: help helpall helpserver::
$(info ) $(info )
@ -21,15 +21,17 @@ helpserver::
#---------------------------------------------------------------------- #----------------------------------------------------------------------
ORGCOMM = README request-assign-future.txt lisp/ doc/ ORGCOMM = README request-assign-future.txt lisp/ doc/
ORGFULL = $(ORGCOMM) Makefile default.mk targets.mk etc/ contrib/ utils/ ORGFULL = $(ORGCOMM) Makefile default.mk targets.mk version.mk \
etc/ contrib/ utils/
ORGFULL := $(ORGFULL:%/=%/*) ORGFULL := $(ORGFULL:%/=%/*)
ORGELPA = $(ORGCOMM) etc/styles/ org-pkg.el ORGELPA = $(ORGCOMM) etc/styles/ org-pkg.el
ORGELPA := $(ORGELPA:%/=%/*) ORGELPA := $(ORGELPA:%/=%/*)
release: ORG_MAKE_DOC=info pdf card # do not make HTML documentation release: ORG_MAKE_DOC=info pdf card # do not make HTML documentation
release: cleanall doc autoloads rel-dirty release: cleanall doc rel-dirty
rel-dirty rel-up: ORGDIR=org-$(GITVERSION:release_%=%) rel-dirty rel-up: ORGDIR=org-$(GITVERSION:release_%=%)
rel-dirty: rel-dirty rel-up: ORGDIST=-dist
rel-dirty: autoloads version.mk
-@$(RM) $(ORGDIR) $(ORGRTAR) $(ORGRZIP) -@$(RM) $(ORGDIR) $(ORGRTAR) $(ORGRZIP)
ln -s . $(ORGDIR) ln -s . $(ORGDIR)
tar -zcf $(ORGDIR).tar.gz $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist)) tar -zcf $(ORGDIR).tar.gz $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
@ -37,7 +39,7 @@ rel-dirty:
-@$(RM) $(ORGDIR) -@$(RM) $(ORGDIR)
$(if $(filter-out $(ORGVERSION), $(GITVERSION)), \ $(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
@$(MAKE) tagwarn) @$(MAKE) tagwarn)
@echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION) @echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)$(ORGDIST)
rel-up: rel-dirty rel-up: rel-dirty
$(CP) $(ORGDIR).tar.gz $(ORGDIR).zip $(SERVROOT)/ $(CP) $(ORGDIR).tar.gz $(ORGDIR).zip $(SERVROOT)/
@ -48,7 +50,8 @@ PKG_REQ = "nil"
elpa: ORG_MAKE_DOC=info pdf card # do not make HTML documentation elpa: ORG_MAKE_DOC=info pdf card # do not make HTML documentation
elpa: cleanall doc elpa-dirty elpa: cleanall doc elpa-dirty
elpa-dirty elpa-up: ORGDIR=org-$(PKG_TAG) elpa-dirty elpa-up: ORGDIR=org-$(PKG_TAG)
elpa-dirty: autoloads elpa-dirty elpa-up: ORGDIST=-elpa
elpa-dirty: autoloads version.mk
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP) -@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP)
ln -s . $(ORGDIR) ln -s . $(ORGDIR)
echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" >org-pkg.el echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" >org-pkg.el
@ -57,7 +60,7 @@ elpa-dirty: autoloads
-@$(RM) $(ORGDIR) org-pkg.el -@$(RM) $(ORGDIR) org-pkg.el
$(if $(filter-out $(ORGVERSION), $(GITVERSION)), \ $(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
@$(MAKE) tagwarn) @$(MAKE) tagwarn)
@echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION) @echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)$(ORGDIST)
elpa-up: elpa-dirty elpa-up: elpa-dirty
$(CP) $(ORGDIR).tar $(SERVROOT)/pkg/daily/ $(CP) $(ORGDIR).tar $(SERVROOT)/pkg/daily/
@ -70,9 +73,13 @@ tagwarn:
$(info ======================================================) $(info ======================================================)
@echo "" @echo ""
clean: cleanrel version.mk:
@echo "ORGVERSION ?= $(ORGVERSION)" > $@
@echo "GITVERSION ?= $(GITVERSION)$(ORGDIST)" >> $@
cleanall clean: cleanrel
cleanrel: cleanrel:
$(RM) org-7.* org-20??????* -$(RM) org-*.zip org-*.tar* version.mk
doc-up: doc-up:
$(MAKE) -C doc html manual guide $(MAKE) -C doc html manual guide