From eccd5d5a41800f5dd69889e67ec5c60a7ca63c9e Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 16 Jul 2009 15:18:21 +0000 Subject: [PATCH] ghc-get-packages.sh no array at all: roughly 20% faster svn path=/nixpkgs/trunk/; revision=16399 --- pkgs/development/compilers/ghc/ghc-get-packages.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/ghc/ghc-get-packages.sh b/pkgs/development/compilers/ghc/ghc-get-packages.sh index 7f47cd30a151..381dd5711119 100755 --- a/pkgs/development/compilers/ghc/ghc-get-packages.sh +++ b/pkgs/development/compilers/ghc/ghc-get-packages.sh @@ -11,11 +11,10 @@ else fi PATH="$2:$PATH" IFS=":" -PKGS=() for p in $PATH; do PkgDir="$p/../lib/ghc-pkgs/ghc-$version" for i in $PkgDir/*.installedconf; do - test -f $i && PKGS[${#PKGS[*]}]="$prefix$i" + # output takes place here + test -f $i && echo -n " $prefix$i" done done -echo ${PKGS[*]}