[Pkg-haskell-commits] darcs: ghc: I should do the change in the .in file....
Joachim Breitner
mail at joachim-breitner.de
Wed Jun 15 20:27:22 UTC 2011
Wed Jun 15 20:27:04 UTC 2011 Joachim Breitner <mail at joachim-breitner.de>
* I should do the change in the .in file....
Ignore-this: cff2b85cebe11255204a979fb74729fb
M ./ghc-doc.postinst.in +19
Wed Jun 15 20:27:04 UTC 2011 Joachim Breitner <mail at joachim-breitner.de>
* I should do the change in the .in file....
Ignore-this: cff2b85cebe11255204a979fb74729fb
diff -rN -u old-ghc//ghc-doc.postinst.in new-ghc//ghc-doc.postinst.in
--- old-ghc//ghc-doc.postinst.in 2011-06-15 20:27:22.273273224 +0000
+++ new-ghc//ghc-doc.postinst.in 2011-06-15 20:27:22.297275010 +0000
@@ -22,6 +22,25 @@
case "$1" in
triggered|configure)
+ # Older versions of haskell_devscripts installed .haddock files in
+ # ghc-version-dependent paths. We thus merge them here using symbolic
+ # links. Luckily, dpkg will cleanly remove the symlinks when the last
+ # broken package is deinstalled.
+ # This can be removed once all packages have been rebuilt from source
+ # with a version of haskell-devscripts that installs into
+ # /usr/lib/ghc-doc/haddock/
+ for path in /usr/lib/ghc-7.0.2/haddock /usr/lib/ghc-7.0.3/haddock
+ do
+ if [ -d $path -a ! -L $path ]
+ then
+ echo "Turning $path into a symbolic link to /usr/lib/ghc-doc/haddock/"
+ # This line should successfully do nothing for an empty directory
+ find $path -maxdepth 1 -mindepth 1 -print0 | xargs -0 -r mv /usr/lib/ghc-doc/haddock/
+ rmdir $path
+ ln -s ../ghc-doc/haddock $path
+ fi
+ done
+
/usr/lib/ghc-doc/gen_contents_index
;;
abort-upgrade|abort-remove|abort-deconfigure)
More information about the Pkg-haskell-commits
mailing list