[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[latex209] 01/04: remove old preinst code



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

preining pushed a commit to branch master
in repository latex209.

commit 7969eaa02bac292866752e6a04841e232e9e625f
Author: Norbert Preining <preining@debian.org>
Date:   Mon Jul 13 11:25:54 2015 +0900

    remove old preinst code
---
 debian/changelog            |  6 +++++
 debian/latex209-bin.preinst | 63 ---------------------------------------------
 2 files changed, 6 insertions(+), 63 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5505aff..8ccf6a1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+latex209 (25.mar.1992-16) UNRELEASED; urgency=medium
+
+  * remove old preinst code
+
+ -- Norbert Preining <preining@debian.org>  Mon, 13 Jul 2015 11:25:22 +0900
+
 latex209 (25.mar.1992-15) unstable; urgency=low
 
   * upload to unstable
diff --git a/debian/latex209-bin.preinst b/debian/latex209-bin.preinst
deleted file mode 100644
index eaae584..0000000
--- a/debian/latex209-bin.preinst
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh -e
-#
-# latex209-bin preinst script
-#
-#
-
-# if the config file from previous versions is present and matches the
-# md5sum, add the new dh_installtex header to make sure that no debconf
-# questions are asked, otherwise just let the user decide.
-#
-
-cnffile=/etc/texmf/fmt.d/25latex209.cnf
-bakfile=/etc/texmf/fmt.d/25latex209.bak
-correctmd=7c958ab4f8bf7a0080bc46c48d137bd1
-
-fix_it_up=0
-
-case "$1" in
-  upgrade|install)
-    old_version=$2
-    if [ -n "$old_version" ] && dpkg --compare-versions "$old_version" lt 25.mar.1992-12.6 ; then
-      if [ -r $cnffile ] ; then
-        # if an old conffile is found and matches the md5 sum, we fix it up
-        # otherwise we leave it alone
-	oldmd=`md5sum $cnffile | sed -e 's/ .*//'`
-        if [ "$oldmd" = $correctmd ] ; then
-          fix_it_up=1
-        fi
-      elif [ -r $bakfile ] ; then
-        # if the backup file is found, and matches the md5 sum, we simply delete
-        # it, as it will be reinstatiated by dpkg
-	oldmd=`md5sum $bakfile | sed -e 's/ .*//'`
-        if [ "$oldmd" = $correctmd ] ; then
-          rm $bakfile
-        else
-          mv $bakfile $cnffile
-        fi
-      fi
-      
-      if [ $fix_it_up = 1 ] ; then
-        echo '# 25latex209.cnf
-# You can change/add entries to this file and changes will be preserved
-# over upgrades, even if you have removed the main package prior
-# (not if you purged it). You should leave the following pseudo comment
-# present in the file!
-# -_- DebPkgProvidedMaps -_-
-# 
-#
-# LaTeX 2.09
-#
-# format	engine		pattern-file	arguments
-latex209	tex		-		latex209.ini
-' > $cnffile
-      fi
-    fi
-    ;;
-esac
-
-#DEBHELPER#
-
-exit 0
-
-

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/latex209.git


Reply to: