From 418ec0f5e7be3cda66b05c63d60c6633a244c587 Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Thu, 27 Sep 2012 20:36:08 +0200 Subject: [PATCH] mk/server.mk: (hopefully) correct generation of the package description vector * mk/server.mk: Correct generation of the package description vector. Use empty list instead of nil and add the package type "tar". With these changes a local copy of the package directory is recognized correctly. Add local file variable to the package description files so that the byte compiler does not try to compile them. --- mk/server.mk | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/mk/server.mk b/mk/server.mk index ae91dae22..7cdae55db 100644 --- a/mk/server.mk +++ b/mk/server.mk @@ -65,17 +65,19 @@ elpa-dirty: @$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-elpa version autoloads -@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP) ln -s . $(ORGDIR) - echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" \ - > org-pkg.el - tar --exclude=Makefile --exclude="org-colview-xemacs.el" --transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \ + echo "(define-package \"org\"" > org-pkg.el + echo " \"$(PKG_TAG)\" \"$(PKG_DOC)\" ($(PKG_REQ)))" >> org-pkg.el + echo ";; no-byte-compile: t" >> org-pkg.el + tar --exclude=Makefile --exclude="org-colview-xemacs.el" \ + --transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \ $(foreach dist, $(ORGELPA), $(ORGDIR)/$(dist)) -@$(RM) $(ORGDIR) org-pkg.el elpa-up: info card elpa-dirty archive-contents $(CP) archive-contents $(ORGDIR).tar $(SERVROOT)/pkg/daily/ archive-contents: - echo "(1 (org . [($(PKG_TAG)) nil \"$(PKG_DOC)\"])\n" > $@ \ - " (org-plus-contrib . [($(PKG_TAG)) nil \"$(PKG_DOC)\"]))" >> $@ + echo "(1 (org . [($(PKG_TAG)) ($(PKG_REQ)) \"$(PKG_DOC)\" tar])" > $@ + echo " (org-plus-contrib . [($(PKG_TAG)) ($(PKG_REQ)) \"$(PKG_DOC)\" tar]))" >> $@ elpaplus: cleanall info card elpaplus-dirty elpaplus-dirty elpaplus-up: ORG_ADD_CONTRIB=org-* @@ -84,9 +86,11 @@ elpaplus-dirty: @$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-elpaplus version autoloads -@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP) ln -s . $(ORGDIR) - echo "(define-package \"org-plus-contrib\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" \ - > org-plus-contrib-pkg.el - tar --exclude=Makefile --exclude="org-colview-xemacs.el" --transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \ + echo "(define-package \"org-plus-contrib\"" > org-plus-contrib-pkg.el + echo " \"$(PKG_TAG)\" \"$(PKG_DOC)\" ($(PKG_REQ)))" >> org-plus-contrib-pkg.el + echo ";; no-byte-compile: t" >> org-plus-contrib-pkg.el + tar --exclude=Makefile --exclude="org-colview-xemacs.el" \ + --transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \ $(foreach dist, $(ORGELPAPLUS), $(ORGDIR)/$(dist)) -@$(RM) $(ORGDIR) org-plus-contrib-pkg.el @$(MAKE) cleanlisp