From fe46aafabf79d4b468209c487c153a0637c153ee Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Mar 2021 23:24:50 -0700 Subject: build and install consfigurator.el Signed-off-by: Sean Whitton --- .gitignore | 1 + debian/changelog | 8 ++++++++ debian/control | 2 ++ debian/elpa | 1 + debian/rules | 6 +++++- emacs/Makefile | 6 ++++++ emacs/consfigurator.el.in | 31 +++++++++++++++++++++++++++++++ 7 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 debian/elpa create mode 100644 emacs/Makefile create mode 100644 emacs/consfigurator.el.in diff --git a/.gitignore b/.gitignore index 6d42974..2d38eb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /doc/_build/ +/emacs/consfigurator.el diff --git a/debian/changelog b/debian/changelog index 4c1e597..2a583c6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +consfigurator (0.2.1-2) UNRELEASED; urgency=medium + + * Install consfigurator.el using dh_elpa + - Add build-dep on dh-elpa + - Add Provides: elpa-consfigurator. + + -- Sean Whitton Tue, 09 Mar 2021 23:23:03 -0700 + consfigurator (0.2.1-1) experimental; urgency=medium * New upstream release. diff --git a/debian/control b/debian/control index a0acf6c..fd9ab8a 100644 --- a/debian/control +++ b/debian/control @@ -4,6 +4,7 @@ Priority: optional Maintainer: Sean Whitton Build-Depends: debhelper-compat (= 13), + dh-elpa, python3-sphinx, sphinx-common, texinfo, @@ -27,6 +28,7 @@ Recommends: ${sphinxdoc:Depends}, Provides: consfigurator, + elpa-consfigurator, Description: Lisp declarative configuration management system Consfigurator is a system for declarative configuration management using Common Lisp. You can use it to configure hosts as root, deploy services as diff --git a/debian/elpa b/debian/elpa new file mode 100644 index 0000000..8dcad08 --- /dev/null +++ b/debian/elpa @@ -0,0 +1 @@ +emacs/consfigurator.el diff --git a/debian/rules b/debian/rules index 7e8a674..923e881 100755 --- a/debian/rules +++ b/debian/rules @@ -1,10 +1,14 @@ #!/usr/bin/make -f +ELPA_NAME=consfigurator +export ELPA_NAME + %: - dh $@ --with sphinxdoc + dh $@ --with sphinxdoc,elpa override_dh_auto_build: make -C doc html info + make -C emacs consfigurator.el override_dh_auto_clean: find src -name "*.fasl" -delete diff --git a/emacs/Makefile b/emacs/Makefile new file mode 100644 index 0000000..1c29533 --- /dev/null +++ b/emacs/Makefile @@ -0,0 +1,6 @@ +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 diff --git a/emacs/consfigurator.el.in b/emacs/consfigurator.el.in new file mode 100644 index 0000000..a39fe03 --- /dev/null +++ b/emacs/consfigurator.el.in @@ -0,0 +1,31 @@ +;;; consfigurator.el --- utilities for working with Consfigurator consfigs + +;; Author: Sean Whitton +;; Version: 0.2.1 + +;; Copyright (C) 2021 Sean Whitton + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Code: + +;;;###autoload +(defun activate-consfigurator-indentation-hints () + "Activate indentation hints for Consfigurator properties." + (interactive) + @putforms@) + +(provide 'consfigurator) + +;;; consfigurator.el ends here -- cgit v1.2.3