From 0962403d183e8d40a93948ec367c1fd3d2eebc62 Mon Sep 17 00:00:00 2001 From: Jerome Marant Date: Tue, 23 Aug 2005 19:42:22 +0000 Subject: [PATCH] Handle previous emacs site conffiles --- debian/changelog | 5 +++++ debian/ocaml-nox.NEWS | 6 ++++++ debian/ocaml-nox.postinst | 6 +++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2b4c0365..b655e8e8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,12 +17,17 @@ ocaml (3.08.3-8) UNRELEASED; urgency=low debian/ocaml-mode.emacsen-remove, debian/ocaml-mode.emacsen-startup: New files respectively renamed from emacsen-install, emacsen-remove and emacsen-startup + * debian/ocaml-nox.postint: Rename previous existing emacs site + conffiles to .save in order to avoid messing with the new + ocaml-mode * debian/rules: Install ocaml-mode files in their own location * debian/ocaml-base-nox.README.Debian: Mention new ocaml-mode package * debian/ocaml-nox.NEWS: - New file - Mention all emacs-related files moved to a separate ocaml-mode package + - Mention that all previous emacs conffiles are renamed in order + not to mess with the new ocaml-mode * debian/changelog: Remove spurious changelog entry -- Jerome Marant Sat, 20 Aug 2005 13:34:52 +0200 diff --git a/debian/ocaml-nox.NEWS b/debian/ocaml-nox.NEWS index 471bb964..f0ed4688 100644 --- a/debian/ocaml-nox.NEWS +++ b/debian/ocaml-nox.NEWS @@ -4,5 +4,11 @@ ocaml-nox (3.08.3-8) unstable; urgency=low programs which is shipped with ocaml has been moved to its own `ocaml-mode' package. + * If found, previous Emacs site conffiles called + /etc/emacs/site-start.d/50ocaml.el and + /etc/emacs/site-start.d/50ocaml-nox.el are renamed to + .save in order not to mess with the site conffile from + the new `ocaml-mode' package. + -- Jerome Marant Sat, 20 Aug 2005 13:30:25 +0200 diff --git a/debian/ocaml-nox.postinst b/debian/ocaml-nox.postinst index 64c06234..56bef73b 100644 --- a/debian/ocaml-nox.postinst +++ b/debian/ocaml-nox.postinst @@ -9,10 +9,10 @@ ln -sf ../ocaml-base-nox/ocaml_packaging_policy.gz /usr/share/doc/ocaml-nox if [ "$1" = "configure" ]; then ocaml-md5sums update - # Get rid of Emacs conffiles from previous ocaml versions + # Save Emacs conffiles from previous ocaml versions for f in ocaml ocaml-nox ; do - [ -e "/etc/emacs/site-start.d/50$f.el" ] && \ - rm -f "/etc/emacs/site-start.d/50$f.el" + file="/etc/emacs/site-start.d/50$f.el" + [ -e "$file" ] && mv "$file" "$file.save" done fi -- 2.30.2