aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--debian/changelog8
-rw-r--r--debian/control2
-rw-r--r--debian/elpa1
-rwxr-xr-xdebian/rules6
-rw-r--r--emacs/Makefile6
-rw-r--r--emacs/consfigurator.el.in31
7 files changed, 54 insertions, 1 deletions
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 <spwhitton@spwhitton.name> 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 <spwhitton@spwhitton.name>
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/, <FH>) } \
+ 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 <spwhitton@spwhitton.name>
+;; 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 <https://www.gnu.org/licenses/>.
+
+;;; Code:
+
+;;;###autoload
+(defun activate-consfigurator-indentation-hints ()
+ "Activate indentation hints for Consfigurator properties."
+ (interactive)
+ @putforms@)
+
+(provide 'consfigurator)
+
+;;; consfigurator.el ends here