[cylc] 14/23: Add startup file

Alastair McKinstry mckinstry at moszumanska.debian.org
Sun Mar 26 12:04:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository cylc.

commit 433e8e9f87b6c611f9583955f61248ea7156c625
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Thu Nov 10 08:02:34 2016 +0000

    Add startup file
---
 debian/50cylc.el        | 5 +++++
 debian/cylc-el.install  | 1 +
 debian/cylc-el.postinst | 6 +++++-
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/50cylc.el b/debian/50cylc.el
new file mode 100644
index 0000000..0eb0c23
--- /dev/null
+++ b/debian/50cylc.el
@@ -0,0 +1,5 @@
+(if (not (file-exists-p "/usr/share/emacs/site-lisp/cylc"))
+  (message "Package cylc-el removed but not purged. Skipping setup.")
+  (autoload 'cylc-mode "cylc-mode"
+    "Major mode for editing CYLC .cylc files" t)
+  (add-to-list 'auto-mode-alist '(list '("\\.rc$" . cylc-mode))))
diff --git a/debian/cylc-el.install b/debian/cylc-el.install
new file mode 100644
index 0000000..4a4d833
--- /dev/null
+++ b/debian/cylc-el.install
@@ -0,0 +1 @@
+debian/50cylc.el /etc/emacs/site-start.d
diff --git a/debian/cylc-el.postinst b/debian/cylc-el.postinst
index da5d7bd..6ea7fda 100644
--- a/debian/cylc-el.postinst
+++ b/debian/cylc-el.postinst
@@ -1,10 +1,14 @@
 #!/bin/sh
+
 set -e
+
+#DEBHELPER#
+
 if [ -x /usr/lib/emacsen-common/emacs-package-install ]; then
     if [ ! -f /var/lib/emacsen-common/installed-flavors ]; then
 	echo Warning: /var/lib/emacsen-common/installed-flavors does not exist.
 	echo Creating an empty one.
 	touch /var/lib/emacsen-common/installed-flavors
     fi
-    /usr/lib/emacsen-common/emacs-package-install cycl-mode.el
+    /usr/lib/emacsen-common/emacs-package-install cycl-el
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cylc.git



More information about the debian-science-commits mailing list