Date: Thursday, May 1, 2014 @ 03:24:11 Author: td123 Revision: 211924
do not print versions for replaces Modified: ghc/trunk/print-provides-replaces.sh ----------------------------+ print-provides-replaces.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Modified: print-provides-replaces.sh =================================================================== --- print-provides-replaces.sh 2014-04-30 20:25:03 UTC (rev 211923) +++ print-provides-replaces.sh 2014-05-01 01:24:11 UTC (rev 211924) @@ -31,13 +31,17 @@ for pkg in $(ls ./*/*.cabal | awk -F '/' '{ print $2 }'); do [[ ${exclude[${pkg}]} ]] && continue version=$(awk 'tolower($0) ~ /^version:/ {print $2 }' $pkg/$pkg.cabal) - printf "'haskell-$pkg$2$version'\n " + printf "'haskell-$pkg" + [[ -n "$2" ]] && printf "$2$version" + printf "'\n " done # also add cabal version=$(awk 'tolower($0) ~ /^version:/ { print $2 }' Cabal/Cabal/Cabal.cabal) - printf "'haskell-cabal$2$version'\n " + printf "'haskell-cabal" + [[ -n "$2" ]] && printf "$2$version" + printf "'\n " echo -e '\b)' } print_var 'provides' '=' -print_var 'replaces' '<' +print_var 'replaces'