[Pkg-haskell-commits] darcs: ghc: s/ghc6/ghc

Joachim Breitner mail at joachim-breitner.de
Sat Jan 15 13:01:14 UTC 2011


Sat Jan 15 12:28:39 UTC 2011  Joachim Breitner <mail at joachim-breitner.de>
  * s/ghc6/ghc
  Ignore-this: f2aac4153920ba0b027afbdd4176280
  
  A transitional ghc6 package has yet to be added and upgrades have to be tested
  (e.g. proper cleaning of old packages file caches and whatnot).

     ./ghc-pkg6.man.in -> ./ghc-pkg.man.in
     ./ghc6-doc.doc-base.users-guide -> ./ghc-doc.doc-base.users-guide
     ./ghc6-doc.postinst.in -> ./ghc-doc.postinst.in
     ./ghc6-doc.postrm.in -> ./ghc-doc.postrm.in
     ./ghc6-doc.preinst.in -> ./ghc-doc.preinst.in
     ./ghc6-doc.prerm -> ./ghc-doc.prerm
     ./ghc6-doc.triggers.in -> ./ghc-doc.triggers.in
     ./ghc6-dynamic.dirs -> ./ghc-dynamic.dirs
     ./ghc6-haddock.manpages -> ./ghc-haddock.manpages
     ./ghc6.docs -> ./ghc.docs
     ./ghc6.postinst.in -> ./ghc.postinst.in
     ./ghc6.preinst -> ./ghc.preinst
     ./ghc6.prerm.in -> ./ghc.prerm.in
     ./ghc6.triggers -> ./ghc.triggers
     ./lintian-overrides/ghc6-dynamic -> ./lintian-overrides/ghc-dynamic
    M ./Dh_Haskell.sh -13 +13
    M ./control -13 +13
    M ./dh_haskell_provides -6 +6
    M ./gen_contents_index.in -5 +5
    M ./ghc-doc.doc-base.users-guide -4 +4
    M ./ghc-doc.postinst.in -2 +2
    M ./ghc-doc.postrm.in -3 +3
    M ./ghc-doc.preinst.in -6 +6
    M ./ghc-doc.prerm -9 +9
    M ./ghc-doc.triggers.in -5 +5
    M ./ghc.postinst.in -10 +10
    M ./ghc.preinst -1 +1
    M ./ghc.prerm.in -2 +2
    M ./lintian-overrides/ghc-dynamic -2 +2
    M ./provided_substvars -6 +6
    M ./rules -42 +43
    M ./scripts.mk -3 +3

Sat Jan 15 12:28:39 UTC 2011  Joachim Breitner <mail at joachim-breitner.de>
  * s/ghc6/ghc
  Ignore-this: f2aac4153920ba0b027afbdd4176280
  
  A transitional ghc6 package has yet to be added and upgrades have to be tested
  (e.g. proper cleaning of old packages file caches and whatnot).
diff -rN -u old-ghc/control new-ghc/control
--- old-ghc/control	2011-01-15 13:01:14.716424729 +0000
+++ new-ghc/control	2011-01-15 13:01:14.740425994 +0000
@@ -3,16 +3,16 @@
 Priority: optional
 Maintainer: Kari Pahula <kaol at debian.org>
 Standards-Version: 3.9.0
-Build-Depends: debhelper (>= 7), libgmp3-dev, devscripts, ghc6, grep-dctrl, autotools-dev, gcc (>= 4:4.2), procps | hurd, libffi-dev, autoconf, pkg-config, xsltproc, docbook-xsl, docbook-xml, binutils (>= 2.19.51.20090508) [arm armel], libncurses5-dev
+Build-Depends: debhelper (>= 7), libgmp3-dev, devscripts, ghc | ghc6, grep-dctrl, autotools-dev, gcc (>= 4:4.2), procps | hurd, libffi-dev, autoconf, pkg-config, xsltproc, docbook-xsl, docbook-xml, binutils (>= 2.19.51.20090508) [arm armel], libncurses5-dev
 Homepage: http://haskell.org/ghc/
 
-Package: ghc6
+Package: ghc
 Architecture: any
 Depends: gcc (>= 4:4.2), libgmp3-dev, libffi-dev, libbsd-dev, libc6-dev, ${shlibs:Depends}, ${misc:Depends}
 Provides: haskell-compiler, ghc, ${provided-devs}, ${haskell:Provides}, ${ghci}
-Replaces: ghc6-doc (= 6.12.1-8)
-Breaks: cabal-install (<< 0.8.0), haskell-devscripts (<< 0.6.19), ghc6-doc (<= 6.12.1-8)
-Suggests: perl, ghc6-prof, ghc6-doc, haskell-doc
+Replaces: ghc-doc (= 6.12.1-8)
+Breaks: cabal-install (<< 0.8.0), haskell-devscripts (<< 0.6.19), ghc-doc (<= 6.12.1-8)
+Suggests: perl, ghc-prof, ghc-doc, haskell-doc
 Description: GHC - the Glasgow Haskell Compilation system
  Version 6 of the Glorious Glasgow Haskell Compilation system (GHC).  GHC is
  a compiler for Haskell98.
@@ -23,10 +23,10 @@
  Alternatively, there is an online version at
  http://haskell.org/onlinereport/.
 
-Package: ghc6-prof
+Package: ghc-prof
 Architecture: any
 Provides: ghc-prof, ${provided-profs}, ${haskell:Provides}
-Depends: ghc6 (= ${binary:Version}), ${misc:Depends}
+Depends: ghc (= ${binary:Version}), ${misc:Depends}
 Description: Profiling libraries for the Glasgow Haskell Compilation system
  Version 6 of the Glorious Glasgow Haskell Compilation system (GHC).  GHC is
  a compiler for Haskell98.
@@ -41,12 +41,12 @@
  if you want to take a closer look on where exactly your program burns CPU
  cycles.
 
-Package: ghc6-doc
+Package: ghc-doc
 Section: doc
 Architecture: all
 Suggests: haskell-doc
 Provides: ${provided-docs}
-Depends: ghc6-haddock (= ${binary:Version}), ${misc:Depends}, perl
+Depends: ghc-haddock (= ${binary:Version}), ${misc:Depends}, perl
 Description: Documentation for the Glasgow Haskell Compilation system
  Version 6 of the Glorious Glasgow Haskell Compilation system (GHC).  GHC is
  a compiler for Haskell98.
@@ -60,10 +60,10 @@
  This package includes HTML, DVI and PS versions of the SGML-based
  documentation around GHC.
 
-Package: ghc6-dynamic
+Package: ghc-dynamic
 Architecture: i386 amd64
 Provides: ghc-dynamic
-Depends: ghc6 (= ${binary:Version}), ${misc:Depends}
+Depends: ghc (= ${binary:Version}), ${misc:Depends}
 Description: Dynamic libraries for the Glasgow Haskell Compilation system
  Version 6 of the Glorious Glasgow Haskell Compilation system (GHC).  GHC is
  a compiler for Haskell98.
@@ -78,11 +78,11 @@
  libraries included with GHC.  Currently, they are available only on
  i386 and amd64 architectures.
 
-Package: ghc6-haddock
+Package: ghc-haddock
 Architecture: any
 Provides: haddock
 Conflicts: haddock
-Depends: ghc6, ${misc:Depends}, ${shlibs:Depends}
+Depends: ghc, ${misc:Depends}, ${shlibs:Depends}
 Homepage: http://www.haskell.org/haddock/
 Description: Documentation tool for annotated Haskell source code
  Haddock is a tool for automatically generating documentation from
diff -rN -u old-ghc/dh_haskell_provides new-ghc/dh_haskell_provides
--- old-ghc/dh_haskell_provides	2011-01-15 13:01:14.716424729 +0000
+++ new-ghc/dh_haskell_provides	2011-01-15 13:01:14.732425573 +0000
@@ -67,9 +67,9 @@
     touch $sfile
 
     case "$pkg" in
-	libghc6-*-dev|libghc6-*-prof|ghc6|ghc6-prof)
+	libghc-*-dev|libghc-*-prof|ghc|ghc-prof)
 	    if [ -z "$files" ] ; then
-		cfiles=`find_config_for_ghc6 $pkg`
+		cfiles=`find_config_for_ghc $pkg`
 	    else
 		cfiles="$files"
 	    fi
@@ -78,17 +78,17 @@
 	      exit 1
 	    fi
 	    case "$pkg" in
-		libghc6-*-dev|ghc6)
+		libghc-*-dev|ghc)
 	            grep -v \
                         -e ^haskell:Provides \
                         $sfile > $sfile.tmp || true
-	            echo "haskell:Provides=`provides_for_ghc6 $cfiles`" >> $sfile.tmp
+	            echo "haskell:Provides=`provides_for_ghc $cfiles`" >> $sfile.tmp
 		    ;;
-		libghc6-*-prof|ghc6-prof)
+		libghc-*-prof|ghc-prof)
 	            grep -v \
                         -e ^haskell:Provides \
                         $sfile > $sfile.tmp || true
-	            echo "haskell:Provides=`provides_for_ghc6_prof $cfiles`" >> $sfile.tmp
+	            echo "haskell:Provides=`provides_for_ghc_prof $cfiles`" >> $sfile.tmp
 		    ;;
 	    esac
 	    mv $sfile.tmp $sfile
diff -rN -u old-ghc/Dh_Haskell.sh new-ghc/Dh_Haskell.sh
--- old-ghc/Dh_Haskell.sh	2011-01-15 13:01:14.720424940 +0000
+++ new-ghc/Dh_Haskell.sh	2011-01-15 13:01:14.732425573 +0000
@@ -20,7 +20,7 @@
     echo "$package (>= $version), $package (<< $next_upstream_version)"
 }
 
-providing_package_for_ghc6(){
+providing_package_for_ghc(){
     local package
     local dep
     local dir
@@ -38,7 +38,7 @@
     echo $package
 }
 
-providing_package_for_ghc6_prof(){
+providing_package_for_ghc_prof(){
     local package
     local dep
     local dir
@@ -105,7 +105,7 @@
     fi
 }
 
-depends_for_ghc6(){
+depends_for_ghc(){
     local dep
     local packages
     local pkgid
@@ -113,7 +113,7 @@
 	dep=`hashed_dependency dev $pkgid`
 	if [ -z "$dep" ]
 	then
-	  pkg=`providing_package_for_ghc6 $pkgid`
+	  pkg=`providing_package_for_ghc $pkgid`
           if [ -n "$pkg" ]
           then
 	      dep=`dependency $pkg`
@@ -127,7 +127,7 @@
     echo $packages | sed -e 's/^,[ ]*//'
 }
 
-depends_for_ghc6_prof(){
+depends_for_ghc_prof(){
     local dep
     local packages
     local pkgid
@@ -135,7 +135,7 @@
 	dep=`hashed_dependency prof $pkgid`
 	if [ -z "$dep" ]
 	then
-	  pkg=`providing_package_for_ghc6_prof $pkgid`
+	  pkg=`providing_package_for_ghc_prof $pkgid`
 	  dep=`dependency $pkg`
 	fi
 	packages="$packages, $dep"
@@ -144,7 +144,7 @@
     echo $packages | sed -e 's/^,[ ]*//'
 }
 
-provides_for_ghc6(){
+provides_for_ghc(){
     local dep
     local packages
     for package_id in `cabal_package_ids $@` ; do
@@ -153,7 +153,7 @@
     echo $packages | sed -e 's/^,[ ]*//'
 }
 
-provides_for_ghc6_prof(){
+provides_for_ghc_prof(){
     local dep
     local packages
     for package_id in `cabal_package_ids $@` ; do
@@ -167,7 +167,7 @@
 	type="$1"
 	echo $2 | tr A-Z a-z | \
             grep '[a-z0-9]\+-[0-9\.]\+-................................' | \
-		perl -pe 's/([a-z0-9-]+)-([0-9\.]+)-(.....).........................../libghc6-\1-'$type'-\2-\3/'
+		perl -pe 's/([a-z0-9-]+)-([0-9\.]+)-(.....).........................../libghc-\1-'$type'-\2-\3/'
 }
 
 depends_for_hugs(){
@@ -178,15 +178,15 @@
     echo "hugs (>= $upstream_version)"
 }
 
-find_config_for_ghc6(){
+find_config_for_ghc(){
     local f
     local pkg
     pkg=$1
     case "$pkg" in
-	ghc6-prof)
-	    pkg=ghc6
+	ghc-prof)
+	    pkg=ghc
 	    ;;
-	libghc6-*-prof)
+	libghc-*-prof)
 	    pkg=`echo $pkg | sed -e 's/-prof$/-dev/'`
 	    ;;
 	*)
diff -rN -u old-ghc/gen_contents_index.in new-ghc/gen_contents_index.in
--- old-ghc/gen_contents_index.in	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/gen_contents_index.in	2011-01-15 13:01:14.740425994 +0000
@@ -7,16 +7,16 @@
 my %pkgs;
 
 # Add everything from the global Cabal registry to index.
-if (-e '/usr/bin/ghc-pkg6') {
-    open CABAL, 'ghc-pkg6 dump --global |' or warn "ghc-pkg dump failed: $!";
+if (-e '/usr/bin/ghc-pkg') {
+    open CABAL, 'ghc-pkg dump --global |' or warn "ghc-pkg dump failed: $!";
     addInfo (\*CABAL, \%pkgs, \@ifaces);
     close CABAL;
 }
 
 exec ('haddock', '--gen-index', '--gen-contents',
-      '-o', '/usr/share/doc/ghc6-doc/html/libraries/',
+      '-o', '/usr/share/doc/ghc-doc/html/libraries/',
       '-t'. 'Haskell Hierarchical Libraries',
-      '-p', '/usr/share/doc/ghc6-doc/html/libraries/prologue.txt',
+      '-p', '/usr/share/doc/ghc-doc/html/libraries/prologue.txt',
       @ifaces);
 
 sub addInfo {
@@ -47,7 +47,7 @@
     return undef if $$dat{pkg} eq 'ghc';
     my $p = $$dat{pkg}.'-'.$$dat{ver};
     return undef if (exists $$pkgs{$p});
-    if ($$dat{html} =~ m,^/usr/share/doc/ghc6-doc/html/libraries/(.*),) {
+    if ($$dat{html} =~ m,^/usr/share/doc/ghc-doc/html/libraries/(.*),) {
 	$path = $1;
     } elsif ($$dat{html} =~ m,^/usr/share/doc/([^/]*-doc/html/.*),) {
 	$path = "../../../$1";
diff -rN -u old-ghc/ghc6-doc.doc-base.users-guide new-ghc/ghc6-doc.doc-base.users-guide
--- old-ghc/ghc6-doc.doc-base.users-guide	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6-doc.doc-base.users-guide	1970-01-01 00:00:00.000000000 +0000
@@ -1,16 +0,0 @@
-Document: ghc6-users-guide
-Title: GHC6 User's manual
-Author: The GHC Team
-Abstract: Version 6 of the Glorious Glasgow Haskell Compilation system
- (GHC). GHC is a compiler for Haskell98.
- <br>
- Haskell is "the" standard lazy functional programming language. Haskell98
- is the current version of the language. The language definition and
- additional documentation can be found in the `haskell-doc' package.
- Alternatively, there is an online version at
- http://haskell.org/onlinereport/.
-Section: Programming/Haskell
-
-Format: HTML
-Index: /usr/share/doc/ghc6-doc/html/users_guide/index.html
-Files: /usr/share/doc/ghc6-doc/html/users_guide/*.html
diff -rN -u old-ghc/ghc6-doc.postinst.in new-ghc/ghc6-doc.postinst.in
--- old-ghc/ghc6-doc.postinst.in	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6-doc.postinst.in	1970-01-01 00:00:00.000000000 +0000
@@ -1,40 +0,0 @@
-#! /bin/sh
-# postinst script for ghc6-doc
-#
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see /usr/doc/packaging-manual/
-#
-# quoting from the policy:
-#     Any necessary prompting should almost always be confined to the
-#     post-installation script, and should be protected with a conditional
-#     so that unnecessary prompting doesn't happen if a package's
-#     installation fails and the `postinst' is called with `abort-upgrade',
-#     `abort-remove' or `abort-deconfigure'.
-
-case "$1" in
-    triggered|configure)
-        /usr/lib/ghc6-doc/gen_contents_index
-	;;
-    abort-upgrade|abort-remove|abort-deconfigure)
-	;;
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-	;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
diff -rN -u old-ghc/ghc6-doc.postrm.in new-ghc/ghc6-doc.postrm.in
--- old-ghc/ghc6-doc.postrm.in	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6-doc.postrm.in	1970-01-01 00:00:00.000000000 +0000
@@ -1,17 +0,0 @@
-#! /bin/sh
-
-set -e
-
-case "$1" in
-    remove)
-	rm -f /usr/share/doc/ghc6-doc/libraries/index.html \
-	    /usr/share/doc/ghc6-doc/index-frames.html \
-	    /usr/share/doc/ghc6-doc/doc-index.html
-	;;
-    *)
-	;;
-esac
-
-#DEBHELPER#
-
-exit 0
diff -rN -u old-ghc/ghc6-doc.preinst.in new-ghc/ghc6-doc.preinst.in
--- old-ghc/ghc6-doc.preinst.in	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6-doc.preinst.in	1970-01-01 00:00:00.000000000 +0000
@@ -1,21 +0,0 @@
-#! /bin/sh
-
-set -e
-
-case "$1" in
-    upgrade|install)
-	if [ -e /usr/share/doc/ghc6-doc/html/libraries/ ] ; then
-	    rm -f /usr/share/doc/ghc6-doc/html/libraries/index.html \
-		/usr/share/doc/ghc6-doc/html/libraries/index-frames.html \
-		/usr/share/doc/ghc6-doc/html/libraries/doc-index.html
-	    rmdir --ignore-fail-on-non-empty /usr/share/doc/ghc6-doc/html/libraries/
-	    rmdir --ignore-fail-on-non-empty /usr/share/doc/ghc6-doc/html/
-	fi
-	;;
-    *)
-	;;
-esac
-
-#DEBHELPER#
-
-exit 0
diff -rN -u old-ghc/ghc6-doc.prerm new-ghc/ghc6-doc.prerm
--- old-ghc/ghc6-doc.prerm	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6-doc.prerm	1970-01-01 00:00:00.000000000 +0000
@@ -1,40 +0,0 @@
-#! /bin/sh
-# prerm script for ghc6-doc
-#
-
-set -e
-
-# summary of how this script can be called:
-#        * <prerm> `remove'
-#        * <old-prerm> `upgrade' <new-version>
-#        * <new-prerm> `failed-upgrade' <old-version>
-#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-#        * <deconfigured's-prerm> `deconfigure' `in-favour'
-#          <package-being-installed> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see /usr/doc/packaging-manual/
-
-case "$1" in
-    remove|upgrade|deconfigure|failed-upgrade)
-        rm -f /usr/share/doc/ghc6-doc/libraries/doc-index*.html
-        rm -f /usr/share/doc/ghc6-doc/libraries/haddock.css
-        rm -f /usr/share/doc/ghc6-doc/libraries/haddock.js
-        rm -f /usr/share/doc/ghc6-doc/libraries/index.html
-        rm -f /usr/share/doc/ghc6-doc/libraries/libraries.txt
-        rm -f /usr/share/doc/ghc6-doc/libraries/haskell_icon.gif
-        rm -f /usr/share/doc/ghc6-doc/libraries/minus.gif
-        rm -f /usr/share/doc/ghc6-doc/libraries/plus.gif
-    ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
diff -rN -u old-ghc/ghc6.docs new-ghc/ghc6.docs
--- old-ghc/ghc6.docs	2011-01-15 13:01:14.668422199 +0000
+++ new-ghc/ghc6.docs	1970-01-01 00:00:00.000000000 +0000
@@ -1,3 +0,0 @@
-README
-ANNOUNCE
-
diff -rN -u old-ghc/ghc6-doc.triggers.in new-ghc/ghc6-doc.triggers.in
--- old-ghc/ghc6-doc.triggers.in	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6-doc.triggers.in	1970-01-01 00:00:00.000000000 +0000
@@ -1,6 +0,0 @@
-interest /usr/share/doc/ghc6-doc/libraries
-interest /usr/share/ghc6-doc/haddock
-interest /usr/share/ghc6-doc/ghc- at VERSION@/haddock
-interest /usr/share/ghc6-doc/ghc- at VERSION@/desc
-interest /usr/lib/ghc6-doc/haddock
-interest /usr/lib/ghc- at VERSION@/haddock
diff -rN -u old-ghc/ghc6-dynamic.dirs new-ghc/ghc6-dynamic.dirs
--- old-ghc/ghc6-dynamic.dirs	2011-01-15 13:01:14.668422199 +0000
+++ new-ghc/ghc6-dynamic.dirs	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-/usr/share/lintian/overrides
diff -rN -u old-ghc/ghc6-haddock.manpages new-ghc/ghc6-haddock.manpages
--- old-ghc/ghc6-haddock.manpages	2011-01-15 13:01:14.668422199 +0000
+++ new-ghc/ghc6-haddock.manpages	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-debian/haddock.1
diff -rN -u old-ghc/ghc6.postinst.in new-ghc/ghc6.postinst.in
--- old-ghc/ghc6.postinst.in	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6.postinst.in	1970-01-01 00:00:00.000000000 +0000
@@ -1,77 +0,0 @@
-#! /bin/sh
-# postinst script for ghc6
-#
-# SOURCE: ghc6.postinst.in
-set -e
-
-execdir=/usr/bin
-libdir=/usr/lib/ghc- at VERSION@
-bindir=$libdir/bin
-mandir=/usr/share/man
-vardir=/var/lib/ghc- at VERSION@
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see /usr/doc/packaging-manual/
-#
-# quoting from the policy:
-#     Any necessary prompting should almost always be confined to the
-#     post-installation script, and should be protected with a conditional
-#     so that unnecessary prompting doesn't happen if a package's
-#     installation fails and the `postinst' is called with `abort-upgrade',
-#     `abort-remove' or `abort-deconfigure'.
-
-if $libdir/bin/ghc --info | grep -q '"Have interpreter","YES"' ; then
-    NEED_INTERPRETER="\
-            --slave $execdir/runghc runghc $bindir/runghc \
-            --slave $execdir/ghci ghci $bindir/ghci \
-            --slave $mandir/man1/ghci.1.gz ghci.1.gz $mandir/man1/ghc6.1.gz \
-            --slave $mandir/man1/runghc.1.gz runghc.1.gz $mandir/man1/runghc6.1.gz"
-fi
-
-case "$1" in
-    configure|abort-upgrade|abort-remove|abort-deconfigure)
-	$bindir/ghc-pkg recache --global
-	if [ -n "$NEED_INTERPRETER" ] ; then
-            update-alternatives \
-		--install $execdir/runhaskell runhaskell $execdir/runghc6 8600000600 \
-		--slave $mandir/man1/runhaskell.1.gz runhaskell.1.gz $mandir/man1/runghc6.1.gz
-	fi
-        update-alternatives \
-            --install $execdir/haskell-compiler haskell-compiler $execdir/ghc6 600 \
-            --slave $mandir/man1/haskell-compiler.1.gz haskell-compiler.1.gz $mandir/man1/ghc6.1.gz
-        update-alternatives \
-            --install $execdir/ghc ghc $bindir/ghc 600 \
-            --slave $execdir/ghc-pkg ghc-pkg $bindir/ghc-pkg \
-            --slave $execdir/hsc2hs hsc2hs $bindir/hsc2hs \
-            --slave $execdir/hp2ps hp2ps $bindir/hp2ps \
-            --slave $execdir/hpc hpc $bindir/hpc \
-            --slave $mandir/man1/hp2ps.1.gz hp2ps.1.gz $mandir/man1/hp2ps-ghc6.1.gz \
-            --slave $mandir/man1/ghc.1.gz ghc.1.gz $mandir/man1/ghc6.1.gz \
-	    --slave $mandir/man1/ghc-pkg.1.gz ghc-pkg.1.gz $mandir/man1/ghc-pkg6.1.gz \
-            --slave $execdir/hasktags hasktags $bindir/hasktags $NEED_INTERPRETER
-	$bindir/ghc-pkg recache --global
-	$bindir/ghc-pkg check --global || true
-    ;;
-    triggered)
-	$bindir/ghc-pkg recache --global
-	$bindir/ghc-pkg check --global || true
-	;;
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
diff -rN -u old-ghc/ghc6.preinst new-ghc/ghc6.preinst
--- old-ghc/ghc6.preinst	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6.preinst	1970-01-01 00:00:00.000000000 +0000
@@ -1,29 +0,0 @@
-#! /bin/sh
-# preinst script for ghc6
-
-set -e
-
-case "$1" in
-    install)
-	if test -n "$2"; then
-	    if dpkg --compare-versions "$2" "<<" "6.10.3" && dpkg --compare-versions "$2" ">>" "6.10.1"; then
-		rm -f /usr/lib/ghc-6.10.1/package.conf*
-		rmdir --ignore-fail-on-non-empty /usr/lib/ghc-6.10.1
-	    fi
-	fi
-	;;
-    upgrade|abort-upgrade)
-	exit 0
-	;;
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-	;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
diff -rN -u old-ghc/ghc6.prerm.in new-ghc/ghc6.prerm.in
--- old-ghc/ghc6.prerm.in	2011-01-15 13:01:14.712424518 +0000
+++ new-ghc/ghc6.prerm.in	1970-01-01 00:00:00.000000000 +0000
@@ -1,47 +0,0 @@
-#! /bin/sh
-# prerm script for ghc6
-#
-# SOURCE: ghc6.prerm.in
-
-set -e
-
-execdir=/usr/bin
-libdir=/usr/lib/ghc- at VERSION@
-bindir=$libdir/bin
-vardir=/var/lib/ghc- at VERSION@
-
-# summary of how this script can be called:
-#        * <prerm> `remove'
-#        * <old-prerm> `upgrade' <new-version>
-#        * <new-prerm> `failed-upgrade' <old-version>
-#        * <conflictor's-prerm> `remove' `in-f[...incomplete...]



More information about the Pkg-haskell-commits mailing list