Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > 21b6b327c6b386b5bbb53065b3516fa6 > scriptlet

ghc-6.12.3-5.fc14.i686.rpm

PREUN

/bin/sh
if [ "$1" = 0 ]; then
  update-alternatives --remove runhaskell /usr/bin/runghc
  update-alternatives --remove hsc2hs     /usr/bin/hsc2hs-ghc
fi

POSTIN

/bin/sh
# Alas, GHC, Hugs, and nhc all come with different set of tools in
# addition to a runFOO:
#
#   * GHC:  hsc2hs
#   * Hugs: hsc2hs, cpphs
#   * nhc:  cpphs
#
# Therefore it is currently not possible to use --slave below to form
# link groups under a single name 'runhaskell'. Either these tools
# should be disentangled from the Haskell implementations, or all
# implementations should have the same set of tools. *sigh*

update-alternatives --install /usr/bin/runhaskell runhaskell \
  /usr/bin/runghc 500
update-alternatives --install /usr/bin/hsc2hs hsc2hs \
  /usr/bin/hsc2hs-ghc 500

POSTTRANS

/bin/sh
# (posttrans to make sure any old libs and docs have been removed first)
/usr/bin/ghc-pkg recache --no-user-package-conf || :
( cd /usr/share/doc/ghc/html/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index ) || :