diff options
author | Ian Lynagh <igloo@earth.li> | 2009-07-18 12:16:49 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-07-18 12:16:49 +0000 |
commit | e27c3aa29483ba9be97ba8d967c7ea16de327247 (patch) | |
tree | 3b27da352ba249feb0476777be72ae623f7c6963 /boot-pkgs | |
parent | 4c96e4908c3cacae8e3feb4a6fccb120a5740a2a (diff) | |
download | haskell-e27c3aa29483ba9be97ba8d967c7ea16de327247.tar.gz |
Add the time library, and support for libraries in tarballs
Diffstat (limited to 'boot-pkgs')
-rw-r--r-- | boot-pkgs | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -3,6 +3,33 @@ set -e libraries= +tarred="time" + +for p in $tarred +do + libraries="$libraries libraries/$p" + if [ -d "libraries/$p/_darcs" ] + then + echo Ignoring libraries/$p as it looks like a darcs checkout + else + tarball=libraries/tarballs/$p-*.tar.gz + stamp="libraries/stamp/$p" + if [ ! -d "libraries/$p" ] || + [ ! -f "$stamp" ] || + [ "libraries/stamp/$p" -ot $tarball ] + then + rm -rf "libraries/$p" + mkdir "libraries/$p" + ( + cd "libraries/$p" + tar -zxf ../../$tarball + mv */* . + ) + touch "$stamp" + fi + fi +done + for f in libraries/*; do pkgs=$f/ghc-packages if test -f $pkgs; then |