From fd58b21f9af92ebf0bc37cf53eec05feacbe0780 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 10 Mar 2021 11:24:46 -0700 Subject: dynamically regenerate emacs/put-forms.el at package build time Signed-off-by: Sean Whitton --- emacs/Makefile | 8 ++++++++ emacs/put-forms.el | 13 ------------- 2 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 emacs/put-forms.el (limited to 'emacs') diff --git a/emacs/Makefile b/emacs/Makefile index 1c29533..3f9309c 100644 --- a/emacs/Makefile +++ b/emacs/Makefile @@ -1,6 +1,14 @@ +LOAD = '(let ((asdf:*user-cache* "/tmp") \ + (asdf:*central-registry* (list (truename "..")))) \ + (asdf:load-system "consfigurator"))' + SUBSTITUTE = 'BEGIN { open FH, "<", "put-forms.el"; \ chomp($$forms = join "", map s/^/ /r, grep /^\(put/, ) } \ s/ \@putforms@/$$forms/' consfigurator.el: consfigurator.el.in put-forms.el perl -wpe$(SUBSTITUTE) consfigurator.el.in >consfigurator.el + +put-forms.el: + sbcl --disable-debugger --eval '(require "asdf")' --eval $(LOAD) \ + --eval '(consfigurator::dump-properties-for-emacs "$@")' --quit diff --git a/emacs/put-forms.el b/emacs/put-forms.el deleted file mode 100644 index 91273bb..0000000 --- a/emacs/put-forms.el +++ /dev/null @@ -1,13 +0,0 @@ -;; automatically generated by -;; CONSFIGURATOR::DUMP-PROPERTIES-FOR-EMACS; do not edit - -(put 'consfigurator:deploys. 'common-lisp-indent-function '2) -(put 'consfigurator:deploys-these. 'common-lisp-indent-function '2) -(put 'file:has-content 'common-lisp-indent-function '1) -(put 'file:has-content. 'common-lisp-indent-function '1) -(put 'file:contains-lines. 'common-lisp-indent-function '1) -(put 'file:data-uploaded. 'common-lisp-indent-function '2) -(put 'file:secret-uploaded. 'common-lisp-indent-function '2) -(put 'file:regex-replaced-lines. 'common-lisp-indent-function '2) -(put 'os:debian-stable. 'common-lisp-indent-function '1) -(put 'chroot:%os-bootstrapped. 'common-lisp-indent-function '2) -- cgit v1.2.3