[Pkg-haskell-commits] darcs: tools: Script to create a pristine package database
Joachim Breitner
mail at joachim-breitner.de
Sun May 26 10:07:07 UTC 2013
Sun May 26 10:06:37 UTC 2013 Joachim Breitner <mail at joachim-breitner.de>
* Script to create a pristine package database
Ignore-this: e0a0a1755073fdee124b7d2fd188f9ce
Unfortunately, cabal-install doesn't support setting the global database yet.
A ./all-packages/prisitine-package-database.sh
Sun May 26 10:06:37 UTC 2013 Joachim Breitner <mail at joachim-breitner.de>
* Script to create a pristine package database
Ignore-this: e0a0a1755073fdee124b7d2fd188f9ce
Unfortunately, cabal-install doesn't support setting the global database yet.
diff -rN -u old-tools//all-packages/prisitine-package-database.sh new-tools//all-packages/prisitine-package-database.sh
--- old-tools//all-packages/prisitine-package-database.sh 1970-01-01 00:00:00.000000000 +0000
+++ new-tools//all-packages/prisitine-package-database.sh 2013-05-26 10:07:07.105540800 +0000
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+cd $(dirname $0)
+
+mkdir -p pkgdb
+
+rm -f pkgdb/*
+
+for file in $(dpkg -L ghc|grep package.conf.d)
+do
+ if test -d $file; then continue; fi
+ ln -s $file pkgdb/
+done
+
+ghc-pkg recache --package-db=pkgdb
+
More information about the Pkg-haskell-commits
mailing list